Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. |