Claim.CreateUpnClaim(String) Método

Definição

Cria um objeto Claim que representa o nome UPN especificado.Creates a Claim object that represents the specified Universal Principal Name (UPN).

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

Claim

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.

Aplica-se a