ObjectSecurity.GetOwner(Type) Método

Definição

Obtém o proprietário associado ao grupo primário especificado.Gets the owner associated with the specified primary group.

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

Parâmetros

targetType
Type

O grupo primário para o qual obter o proprietário.The primary group for which to get the owner.

Retornos

IdentityReference

O proprietário associado ao grupo especificado.The owner associated with the specified group.

Exceções

targetType é null.targetType is null.

targetType não é um tipo de IdentityReference.targetType is not an IdentityReference type.

Não foi possível converter algumas ou todas as referências de identidade.Some or all identity references could not be translated.

Foi retornado um código de erro do Win32.A Win32 error code was returned.

Aplica-se a