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

Основная группа, для которой требуется получить владельца.

Возвращаемое значение

Владелец, связанный с указанной группой.

Исключения

targetType имеет значение null.

Параметр targetType не является типом IdentityReference.

Некоторые или ссылки на свойства нельзя преобразовать.

Возвращен код ошибки Win32.

Применяется к