Claim.CreateMailAddressClaim(MailAddress) 方法
定义
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
Public Shared Function CreateMailAddressClaim (mailAddress As MailAddress) As Claim
参数
- mailAddress
- MailAddress
一个指定此声明所表示的电子邮件地址的 MailAddress。A MailAddress that specifies the email address this claim represents. 此参数不能为 null。This parameter must not be null. 如果此参数为 null,此方法将引发 ArgumentNullException 异常。If this parameter is null, this method throws an ArgumentNullException exception.
返回
此方法创建的 Claim 对象。The Claim object this method creates.
例外
mailAddress 参数为 null。The mailAddress parameter is null.
注解
此方法创建的 Claim 对象具有下表所示的属性值。The Claim object this method creates has the property values shown in the following table.
| 属性Property | “值”Value |
|---|---|
| ClaimType | |
| Resource | mailAddress 参数的值。The value of the mailAddress parameter. |
| Right | PossessProperty.PossessProperty. |