Freigeben über


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

See Also

Reference

CatalogSiteAgent Class

CatalogSiteAgent Members

Microsoft.CommerceServer.Catalog Namespace