Dela via


ISecurityManagement.GetUserRolesForOperationAndUser Method

Gets a read-only list of user role identifiers that grant access to the operation and user.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As ISecurityManagement
Dim operationId As Guid
Dim userName As String
Dim returnValue As IList(Of Guid)

returnValue = instance.GetUserRolesForOperationAndUser(operationId, userName)

Syntax

'Declaration
Function GetUserRolesForOperationAndUser ( _
    operationId As Guid, _
    userName As String _
) As IList(Of Guid)
IList<Guid> GetUserRolesForOperationAndUser (
    Guid operationId,
    string userName
)
IList<Guid>^ GetUserRolesForOperationAndUser (
    Guid operationId, 
    String^ userName
)
IList<Guid> GetUserRolesForOperationAndUser (
    Guid operationId, 
    String userName
)
function GetUserRolesForOperationAndUser (
    operationId : Guid, 
    userName : String
) : IList<Guid>

Parameters

  • operationId
    Type: Guid

    The operation identifier.

  • userName
    Type: String

    The user name.

Return Value

Type: IList

The list of user roles identifiers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ISecurityManagement Interface
ISecurityManagement Members
Microsoft.EnterpriseManagement Namespace