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
- catalogAuthorizationScope
Type: Microsoft.CommerceServer.Catalog..::.AuthorizationScope
The catalog authorization scope.
- entityName
Type: System..::.String
The entity name.
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
- 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.