Retrieves the monitoring user role value that has the specified globally unique identifier (GUID). Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim userRoleId As Guid
Dim returnValue As MonitoringUserRole

returnValue = instance.GetMonitoringUserRole(userRoleId)

Syntax

Visual Basic
Public Function GetMonitoringUserRole ( _
		userRoleId As Guid _
) As MonitoringUserRole
C#
public MonitoringUserRole GetMonitoringUserRole (
		Guid userRoleId
)
C++
public:
MonitoringUserRole^ GetMonitoringUserRole (
		Guid userRoleId
)
J#
public MonitoringUserRole GetMonitoringUserRole (
		Guid userRoleId
)
JScript
public function GetMonitoringUserRole (
		userRoleId : Guid
) : MonitoringUserRole

Parameters

userRoleId

The GUID of the monitoring user role to get.

Return Value

A MonitoringUserRole object.

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