SecurityIdentifier.Translate(Type) Método

Definición

Convierte el nombre de cuenta representado por el objeto SecurityIdentifier en otro tipo derivado de IdentityReference.

public:
 override System::Security::Principal::IdentityReference ^ Translate(Type ^ targetType);
public override System.Security.Principal.IdentityReference Translate (Type targetType);
override this.Translate : Type -> System.Security.Principal.IdentityReference
Public Overrides Function Translate (targetType As Type) As IdentityReference

Parámetros

targetType
Type

Tipo de destino para la conversión desde SecurityIdentifier. El tipo de destino debe ser un tipo considerado válido por el método IsValidTargetType(Type).

Devoluciones

IdentityReference

Identidad convertida.

Excepciones

targetType es null.

targetType no es un tipo IdentityReference.

No se pudieron convertir algunas o todas las referencias de identidad.

Se devolvió un código de error de Win32.

Se aplica a