Uri.UriSchemeMailto Field

 

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)

Public Shared ReadOnly UriSchemeMailto As String

Field Value

Type: System.String

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

Dim address3 As New Uri("mailto:user@contoso.com?subject=uri")
If address3.Scheme = Uri.UriSchemeMailto Then
    Console.WriteLine("Uri is an email address")
End If 

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: