Share via


GetAuthorizationScopeName Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Returns the scopename for an entity.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Shared Function GetAuthorizationScopeName ( _
    catalogAuthorizationScope As AuthorizationScope, _
    entityName As String _
) As String
'Usage
Dim catalogAuthorizationScope As AuthorizationScope
Dim entityName As String
Dim returnValue As String

returnValue = CatalogContext.GetAuthorizationScopeName(catalogAuthorizationScope, _
    entityName)
public static string GetAuthorizationScopeName(
    AuthorizationScope catalogAuthorizationScope,
    string entityName
)
public:
static String^ GetAuthorizationScopeName(
    AuthorizationScope catalogAuthorizationScope, 
    String^ entityName
)
public static function GetAuthorizationScopeName(
    catalogAuthorizationScope : AuthorizationScope, 
    entityName : String
) : String

Parameters

Return Value

Type: System..::.String
A string representing the scopename.

Remarks

The entity can be catalogname, propertyname or languagename. The scopename is of the form catalogscope_entityname, propertyscope_entityname, languagescope_entityname.

The AuthorizationScope can be an Application, Property, ProductCatalog, Language, or InventoryCatalog.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

Microsoft.CommerceServer.Catalog Namespace