Class UserId
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents the Id of a user.
public sealed class UserId : ComplexProperty
- Inheritance
-
UserId
- Inherited Members
Constructors
UserId()
Initializes a new instance of the UserId class.
public UserId()
UserId(StandardUser)
Initializes a new instance of the UserId class.
public UserId(StandardUser standardUser)
Parameters
standardUser
StandardUserThe StandardUser value used to initialize the UserId.
UserId(string)
Initializes a new instance of the UserId class.
public UserId(string primarySmtpAddress)
Parameters
primarySmtpAddress
stringThe primary SMTP address used to initialize the UserId.
Properties
DisplayName
Gets or sets the display name of the user.
public string DisplayName { get; set; }
Property Value
PrimarySmtpAddress
Gets or sets the primary SMTP address or the user.
public string PrimarySmtpAddress { get; set; }
Property Value
SID
Gets or sets the SID of the user.
public string SID { get; set; }
Property Value
StandardUser
Gets or sets a value indicating which standard user the user represents.
public StandardUser? StandardUser { get; set; }
Property Value
Operators
implicit operator UserId(StandardUser)
Implements an implicit conversion between StandardUser and UserId.
public static implicit operator UserId(StandardUser standardUser)
Parameters
standardUser
StandardUserThe standard user used to initialize the user Id.
Returns
- UserId
A UserId initialized with the specified standard user value.
implicit operator UserId(string)
Implements an implicit conversion between a string representing a primary SMTP address and UserId.
public static implicit operator UserId(string primarySmtpAddress)
Parameters
primarySmtpAddress
stringThe string representing a primary SMTP address.
Returns
- UserId
A UserId initialized with the specified primary SMTP address.