Table of Contents

Class Message

Namespace
Tmds.DBus.Protocol
Assembly
Tmds.DBus.Protocol.dll

Represents a received D-Bus message.

public sealed class Message
Inheritance
Message
Inherited Members

Properties

Destination

Gets the destination bus name as a byte span.

public ReadOnlySpan<byte> Destination { get; }

Property Value

ReadOnlySpan<byte>

DestinationAsString

Gets the destination bus name as a string.

public string? DestinationAsString { get; }

Property Value

string

DestinationIsSet

Gets a value indicating whether the Destination header field is present.

public bool DestinationIsSet { get; }

Property Value

bool

ErrorName

Gets the error name as a byte span.

public ReadOnlySpan<byte> ErrorName { get; }

Property Value

ReadOnlySpan<byte>

ErrorNameAsString

Gets the error name as a string.

public string? ErrorNameAsString { get; }

Property Value

string

ErrorNameIsSet

Gets a value indicating whether the ErrorName header field is present.

public bool ErrorNameIsSet { get; }

Property Value

bool

Interface

Gets the interface name as a byte span.

public ReadOnlySpan<byte> Interface { get; }

Property Value

ReadOnlySpan<byte>

InterfaceAsString

Gets the interface name as a string.

public string? InterfaceAsString { get; }

Property Value

string

InterfaceIsSet

Gets a value indicating whether the Interface header field is present.

public bool InterfaceIsSet { get; }

Property Value

bool

IsBigEndian

Returns whether the message uses big-endian byte order.

public bool IsBigEndian { get; }

Property Value

bool

Member

Gets the member name as a byte span.

public ReadOnlySpan<byte> Member { get; }

Property Value

ReadOnlySpan<byte>

MemberAsString

Gets the member name as a string.

public string? MemberAsString { get; }

Property Value

string

MemberIsSet

Gets a value indicating whether the Member header field is present.

public bool MemberIsSet { get; }

Property Value

bool

MessageFlags

Gets the message flags.

public MessageFlags MessageFlags { get; }

Property Value

MessageFlags

MessageType

Gets the message type.

public MessageType MessageType { get; }

Property Value

MessageType

Path

Gets the object path as a byte span.

public ReadOnlySpan<byte> Path { get; }

Property Value

ReadOnlySpan<byte>

PathAsString

Gets the object path as a string.

public string? PathAsString { get; }

Property Value

string

PathIsSet

Gets a value indicating whether the Path header field is present.

public bool PathIsSet { get; }

Property Value

bool

ReplySerial

Gets the serial number of the message this is a reply to.

public uint? ReplySerial { get; }

Property Value

uint?

Sender

Gets the sender bus name as a byte span.

public ReadOnlySpan<byte> Sender { get; }

Property Value

ReadOnlySpan<byte>

SenderAsString

Gets the sender bus name as a string.

public string? SenderAsString { get; }

Property Value

string

SenderIsSet

Gets a value indicating whether the Sender header field is present.

public bool SenderIsSet { get; }

Property Value

bool

Serial

Gets the serial number of the message.

public uint Serial { get; }

Property Value

uint

Signature

Gets the signature as a byte span.

public ReadOnlySpan<byte> Signature { get; }

Property Value

ReadOnlySpan<byte>

SignatureAsString

Gets the signature as a string.

public string SignatureAsString { get; }

Property Value

string

SignatureIsSet

Gets a value indicating whether the Signature header field is present.

public bool SignatureIsSet { get; }

Property Value

bool

UnixFdCount

Gets the number of Unix file descriptors associated with the message.

public int UnixFdCount { get; }

Property Value

int

Methods

GetBodyReader()

Gets a Reader for reading the message body.

public Reader GetBodyReader()

Returns

Reader