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 錯誤碼。

適用於