MonobjcMonobjc Documented Class Library
ObtainWithRightFlagsError Method (rightName, flags, error)
NamespacesMonobjc.SecurityFoundationSFAuthorizationObtainWithRightFlagsError(String, AuthorizationFlags, NSError%)

Authorizes and preauthorizes one specific right.

Original signature is '- (BOOL)obtainWithRight:(AuthorizationString)rightName flags:(AuthorizationFlags)flags error:(NSError **)error'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool ObtainWithRightFlagsError(
	string rightName,
	AuthorizationFlags flags,
	out NSError error
)
Public Overridable Function ObtainWithRightFlagsError ( _
	rightName As String, _
	flags As AuthorizationFlags, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool ObtainWithRightFlagsError(
	String^ rightName, 
	AuthorizationFlags flags, 
	[OutAttribute] NSError^% error
)
Parameters
rightName (String)
The name of an authorization right.
flags (AuthorizationFlags)
A bit mask for specifying authorization options. See obtainWithRights:flags:environment:authorizedRights:error: for details about possible flag values.
error (NSError%)
On completion, the result code returned by the method. See “Result Codes” in Authorization Services C Reference.
Return Value
YES if operation completes successfully.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.SecurityFoundation (Module: Monobjc.SecurityFoundation)