Compartilhar via


Uri.UriSchemeMailto Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies that the URI is an e-mail address and is accessed through the Simple Mail Transport Protocol (SMTP). This field is read-only.

Namespace:  System
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Shared ReadOnly UriSchemeMailto As String
public static readonly string UriSchemeMailto

Examples

The following example creates a Uri instance and determines whether the scheme is UriSchemeMailto.

Dim address5 As Uri = New Uri("mailto:user@contoso.com?subject=uri")
If address5.Scheme = Uri.UriSchemeMailto Then
  outputBlock.Text &= "Uri is an email address"
  outputBlock.Text &= vbCrLf
End If
Uri address5 = new Uri("mailto:user@contoso.com?subject=uri");
if (address5.Scheme == Uri.UriSchemeMailto) 
    outputBlock.Text += "Uri is an email address\n";
Uri address3 = new Uri("mailto:user@contoso.com?subject=uri");
if (address3.Scheme == Uri.UriSchemeMailto) 
    Console.WriteLine("Uri is an email address");

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference