AuthorizationMode Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the authorization model for use with the CatalogContext to be created.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property AuthorizationMode As AuthorizationMode
'Usage
Dim instance As CatalogSiteAgent
Dim value As AuthorizationMode
value = instance.AuthorizationMode
instance.AuthorizationMode = value
public AuthorizationMode AuthorizationMode { get; set; }
public:
property AuthorizationMode AuthorizationMode {
AuthorizationMode get ();
void set (AuthorizationMode value);
}
public function get AuthorizationMode () : AuthorizationMode
public function set AuthorizationMode (value : AuthorizationMode)
Property Value
Type: Microsoft.CommerceServer..::.AuthorizationMode
The AuthorizationMode.
Remarks
This can be used to enforce authorization using an Authorization Manager authorization policy when running as a ASP.Net application HttpContext or when running using impersonation to enforce a the policy specified at AuthorizationPolicyPath.
The AuthorizationMode enumeration shall be HttpContext, NoAuthorization, or ThreadContext. The default AuthorizationMode is NoAuthorization.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.