Returns an authorization object initialized with the specified flags, rights and environment.
Original signature is '+ (id)authorizationWithFlags:(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 static SFAuthorization AuthorizationWithFlagsRightsEnvironment( AuthorizationFlags flags, IntPtr rights, IntPtr environment )
Public Shared Function AuthorizationWithFlagsRightsEnvironment ( _ flags As AuthorizationFlags, _ rights As IntPtr, _ environment As IntPtr _ ) As SFAuthorization
public: static SFAuthorization^ AuthorizationWithFlagsRightsEnvironment( 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.framework/Headers/AuthorizationTags.h. The data passed in this parameter is not stored in the authorization reference; it is used only during authorization. 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)