ObjectSecurity.GetOwner(Type) 方法

定义

获取与指定主组关联的所有者。

public:
 System::Security::Principal::IdentityReference ^ GetOwner(Type ^ targetType);
public System.Security.Principal.IdentityReference? GetOwner(Type targetType);
public System.Security.Principal.IdentityReference GetOwner(Type targetType);
member this.GetOwner : Type -> System.Security.Principal.IdentityReference
Public Function GetOwner (targetType As Type) As IdentityReference

参数

targetType
Type

要为其获取所有者的主组。

返回

与指定组关联的所有者。

例外

targetTypenull

targetType 不是类型 IdentityReference

无法翻译某些或所有标识引用。

返回了 Win32 错误代码。

适用于