Retrieves a collection of all the user role identifiers that grant
access to the specified operation and user.
Namespace:
Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager
(in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
Visual Basic |
Dim instance As ManagementGroup
Dim operationId As Guid
Dim userName As String
Dim returnValue As ReadOnlyCollection(Of Guid)
returnValue = instance.GetUserRolesForOperationAndUser(operationId, userName)
|
Syntax
Visual Basic |
Public Function GetUserRolesForOperationAndUser ( _
operationId As Guid, _
userName As String _
) As ReadOnlyCollection(Of Guid)
|
C# |
public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser (
Guid operationId,
string userName
)
|
C++ |
public:
ReadOnlyCollection<Guid>^ GetUserRolesForOperationAndUser (
Guid operationId,
String^ userName
)
|
J# |
public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser (
Guid operationId,
String userName
)
|
JScript |
public function GetUserRolesForOperationAndUser (
operationId : Guid,
userName : String
) : ReadOnlyCollection<Guid>
|
Parameters
- operationId
-
User role identifiers that grant access to this operation.
- userName
-
User role identifiers that grant access to this user name.
Return Value
A read-only collection of globally unique identifiers (GUIDs)
representing the user role 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 Server 2008, Windows Vista, Windows Server 2003, and
Windows XP
Target Platforms
Windows Server 2008,Windows Server 2003,Windows Vista,Windows
XP
See Also