EmailAddress.Implicit(String to EmailAddress) Operator

Definition

Defines an implicit conversion between a string that represents a Simple Mail Transfer Protocol (SMTP) address and an EmailAddress object.

public:
 static operator Microsoft::Exchange::WebServices::Data::EmailAddress ^(System::String ^ smtpAddress);
public static implicit operator Microsoft.Exchange.WebServices.Data.EmailAddress (string smtpAddress);
Public Shared Widening Operator CType (smtpAddress As String) As EmailAddress

Parameters

smtpAddress
String

The SMTP address to convert to the EmailAddress type.

Returns

An EmailAddress that is initialized with the specified SMTP address.

Applies to