Freigeben über


GetAuthorizedProfileDefinitionNames Method

Returns a list of profile definitions names against which the caller is authorized to perform specific operations.

Namespace:  Microsoft.CommerceServer.Profiles
Assembly:  Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)

Syntax

'Declaration
Public Function GetAuthorizedProfileDefinitionNames ( _
    requiredPermissions As ProfilePermissions _
) As String()
'Usage
Dim instance As ProfileManagementContext
Dim requiredPermissions As ProfilePermissions
Dim returnValue As String()

returnValue = instance.GetAuthorizedProfileDefinitionNames(requiredPermissions)
public string[] GetAuthorizedProfileDefinitionNames(
    ProfilePermissions requiredPermissions
)
public:
array<String^>^ GetAuthorizedProfileDefinitionNames(
    ProfilePermissions requiredPermissions
)
public function GetAuthorizedProfileDefinitionNames(
    requiredPermissions : ProfilePermissions
) : String[]

Parameters

Return Value

Type: array<System..::.String>[]()[]
The name of the profile definitions against which the caller can perform the specified permission.

Exceptions

Exception Condition
ArgumentNullException

Any of the parameters provided is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The requiredPermissions enumeration has an invalid value.

Remarks

Retrieves the name of the profile definition names against which the user has the specified permission.

Permissions

See Also

Reference

ProfileManagementContext Class

ProfileManagementContext Members

Microsoft.CommerceServer.Profiles Namespace