Lenguaje

NTAccount.Translate(Type) Método

Definición

Convierte el nombre de cuenta representado por el NTAccount objeto en otro IdentityReferencetipo derivado de .

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 de NTAccount. El tipo de destino debe ser un tipo que el IsValidTargetType(Type) método considera válido.

Devoluciones

Identidad convertida.

Excepciones

targetType es null.

targetType no es un IdentityReference tipo.

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

El nombre de la cuenta de origen es demasiado largo.

O bien

Se devolvió un código de error Win32.

Se aplica a