ObjectSecurity.GetOwner(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与指定主组关联的所有者。
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
要为其获取所有者的主组。
返回
与指定组关联的所有者。
例外
targetType 是 null。
targetType 不是类型 IdentityReference 。
无法翻译某些或所有标识引用。
返回了 Win32 错误代码。