Uri.UriSchemeMailto Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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";

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Uri Class

System Namespace