MailItem.TenantId Property
The TenantId property gets the tenant to which the message belongs.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property TenantId As Guid
Get
'Usage
Dim instance As MailItem
Dim value As Guid
value = instance.TenantId
public abstract Guid TenantId { get; }
Property Value
Type: System.Guid
The TenantId property returns a Guid that represents the tenant identifier. An empty GUID is returned for unscoped mail.
Exceptions
Exception | Condition |
---|---|
[InvalidOperationException] | This exception is thrown when the MailItem has already been deferred. |