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:
static initonly String^ UriSchemeMailto

Field Value

Type: System::String^

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

Uri^ address3 = gcnew Uri( "mailto:user@contoso.com?subject=uri" );
if ( address3->Scheme == Uri::UriSchemeMailto )
{
   Console::WriteLine( "Uri is an email address" );
}

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