Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetOwner Method

ObjectSecurity::GetOwner Method

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.

ExceptionCondition
ArgumentNullException

targetType is nullptr.

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft