Table of Contents

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 StandardUser

The StandardUser value used to initialize the UserId.

UserId(string)

Initializes a new instance of the UserId class.

public UserId(string primarySmtpAddress)

Parameters

primarySmtpAddress string

The 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

string

PrimarySmtpAddress

Gets or sets the primary SMTP address or the user.

public string PrimarySmtpAddress { get; set; }

Property Value

string

SID

Gets or sets the SID of the user.

public string SID { get; set; }

Property Value

string

StandardUser

Gets or sets a value indicating which standard user the user represents.

public StandardUser? StandardUser { get; set; }

Property Value

StandardUser?

Operators

implicit operator UserId(StandardUser)

Implements an implicit conversion between StandardUser and UserId.

public static implicit operator UserId(StandardUser standardUser)

Parameters

standardUser StandardUser

The 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 string

The string representing a primary SMTP address.

Returns

UserId

A UserId initialized with the specified primary SMTP address.