SecurityIdentifier.Translate(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将对象表示的 SecurityIdentifier 帐户名称转换为另一个 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
参数
- targetType
- Type
转换 SecurityIdentifier的目标类型。 目标类型必须是方法视为有效的 IsValidTargetType(Type) 类型。
返回
转换后的标识。
例外
targetType 是 null。
targetType 不是类型 IdentityReference 。
无法翻译某些或所有标识引用。
返回了 Win32 错误代码。