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 错误代码。

适用于