SecurityIdentifier.Translate(Type) Metoda

Definicja

Tłumaczy nazwę konta reprezentowaną SecurityIdentifier przez obiekt na inny IdentityReferencetyp pochodny.

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

Parametry

targetType
Type

Typ docelowy konwersji z SecurityIdentifier. Typ docelowy musi być typem, który jest uznawany za prawidłowy przez metodę IsValidTargetType(Type) .

Zwraca

Przekonwertowana tożsamość.

Wyjątki

targetType to null.

targetType nie jest typem IdentityReference .

Nie można przekładać niektórych odwołań do tożsamości.

Zwrócono kod błędu Win32.

Dotyczy