Claim.CreateMailAddressClaim(MailAddress) Claim.CreateMailAddressClaim(MailAddress) Claim.CreateMailAddressClaim(MailAddress) Method

Definition

Creates a Claim object that represents the specified email address.

public:
 static System::IdentityModel::Claims::Claim ^ CreateMailAddressClaim(System::Net::Mail::MailAddress ^ mailAddress);
public static System.IdentityModel.Claims.Claim CreateMailAddressClaim (System.Net.Mail.MailAddress mailAddress);
static member CreateMailAddressClaim : System.Net.Mail.MailAddress -> System.IdentityModel.Claims.Claim

Parameters

mailAddress
MailAddress MailAddress MailAddress

A MailAddress that specifies the email address this claim represents. This parameter must not be null. If this parameter is null, this method throws an ArgumentNullException exception.

Returns

The Claim object this method creates.

Exceptions

Remarks

The Claim object this method creates has the property values shown in the following table.

Property Value
ClaimType Email
Resource The value of the mailAddress parameter.
Right PossessProperty.

Applies to