Claim.CreateUpnClaim(String) Método
Definição
public:
static System::IdentityModel::Claims::Claim ^ CreateUpnClaim(System::String ^ upn);
public static System.IdentityModel.Claims.Claim CreateUpnClaim (string upn);
static member CreateUpnClaim : string -> System.IdentityModel.Claims.Claim
Public Shared Function CreateUpnClaim (upn As String) As Claim
Parâmetros
- upn
- String
O nome UPN da entidade associada a esta declaração.The UPN of the entity associated with this claim. Esse parâmetro não deve ser null.This parameter must not be null. Se esse parâmetro for null, este método gerará uma exceção ArgumentNullException.If this parameter is null, this method throws an ArgumentNullException exception.
Retornos
O objeto Claim criado por esse método.The Claim object this method creates.
Exceções
O parâmetro upn é null.The upn parameter is null.
Comentários
O Claim objeto criado por esse método tem os valores de propriedade mostrados na tabela a seguir.The Claim object this method creates has the property values shown in the following table.
| PropriedadeProperty | ValorValue |
|---|---|
| ClaimType | Upn |
| Resource | O valor do upn parâmetro.The value of the upn parameter. |
| Right | PossessProperty.PossessProperty. |