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

適用於