Initializes an authorization object with the specified flags, rights, and environment.
Original signature is '- (id)initWithFlags:(AuthorizationFlags)flags rights:(const AuthorizationRights *)rights environment:(const AuthorizationEnvironment *)environment'
Available in Mac OS X v10.3 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public SFAuthorization( AuthorizationFlags flags, IntPtr rights, IntPtr environment )
Public Sub New ( _ flags As AuthorizationFlags, _ rights As IntPtr, _ environment As IntPtr _ )
public: SFAuthorization( AuthorizationFlags flags, IntPtr rights, IntPtr environment )
Parameters
- flags (AuthorizationFlags)
- A bit mask for specifying authorization options. Use the following option sets:
- rights (IntPtr)
- A pointer to a set of authorization rights you create. Pass NULL if the application requires no rights at this time.
- environment (IntPtr)
- Data used when authorizing or preauthorizing rights. In Mac OS X v10.3 and later, you can pass icon or prompt data to be used in the authentication dialog box. Possible values for this parameter are listed in Security/AuthorizationTags.h. If you are not passing any data in this parameter, pass the constant kAuthorizationEmptyEnvironment.
Return Value
The authorization object.
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)