GetOwner Method

ObjectSecurity.GetOwner Method (Type)

 

Gets the owner associated with the specified primary group.

Namespace:   System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public IdentityReference GetOwner(
	Type targetType
)

Parameters

targetType
Type: System.Type

The primary group for which to get the owner.

Return Value

Type: System.Security.Principal.IdentityReference

The owner associated with the specified group.

Exception Condition
ArgumentNullException

targetType is null.

ArgumentException

targetType is not an IdentityReference type.

IdentityNotMappedException

Some or all identity references could not be translated.

SystemException

A Win32 error code was returned.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft