MailUriHelper.GetEmailAddress Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the e-mail address from a Uri object.
Namespace: Microsoft.ServiceModel.Channels.Mail
Assembly: Microsoft.ServiceModel.Channels.Mail (in Microsoft.ServiceModel.Channels.Mail.dll)
Syntax
'Declaration
Public Shared Function GetEmailAddress ( _
uri As Uri _
) As String
'Usage
Dim uri As Uri
Dim returnValue As String
returnValue = MailUriHelper.GetEmailAddress(uri)
public static string GetEmailAddress(
Uri uri
)
public:
static String^ GetEmailAddress(
Uri^ uri
)
static member GetEmailAddress :
uri:Uri -> string
Parameters
- uri
Type: System.Uri
The Uri object that contains the e-mail address.
Return Value
Type: System.String
A string that represents the e-mail address.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The channel name or e-mail address is not formatted correctly or contains invalid characters. |
ArgumentNullException | uri is nulla null reference (Nothing in Visual Basic). |
Remarks
To return the channel name from the Uri object, use the GetChannelName method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5