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
- requiredPermissions
Type: Microsoft.CommerceServer.Profiles..::.ProfilePermissions
A ProfilePermissions value specifying the permissions that are required by the caller.
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
- 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.
See Also
Reference
ProfileManagementContext Class