Class Mailbox
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents a mailbox reference.
public class Mailbox : ComplexProperty, ISearchStringProvider
- Inheritance
-
Mailbox
- Implements
- Inherited Members
Constructors
Mailbox()
Initializes a new instance of the Mailbox class.
public Mailbox()
Mailbox(string)
Initializes a new instance of the Mailbox class.
public Mailbox(string smtpAddress)
Parameters
smtpAddressstringThe primary SMTP address of the mailbox.
Mailbox(string, string)
Initializes a new instance of the Mailbox class.
public Mailbox(string address, string routingType)
Parameters
addressstringThe address used to reference the user mailbox.
routingTypestringThe routing type of the address used to reference the user mailbox.
Properties
Address
Gets or sets the address used to refer to the user mailbox.
public string Address { get; set; }
Property Value
IsValid
True if this instance is valid, false otherthise.
public bool IsValid { get; }
Property Value
- bool
trueif this instance is valid; otherwise,false.
RoutingType
Gets or sets the routing type of the address used to refer to the user mailbox.
public string RoutingType { get; set; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
Returns
Exceptions
- NullReferenceException
The
objparameter is null.
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator Mailbox(string)
Defines an implicit conversion between a string representing an SMTP address and Mailbox.
public static implicit operator Mailbox(string smtpAddress)
Parameters
smtpAddressstringThe SMTP address to convert to EmailAddress.
Returns
- Mailbox
A Mailbox initialized with the specified SMTP address.