Initializes a new MonitoringTaskInUserRoleScopeAlreadyExistsException object with monitoring task and user role identifiers. Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.OperationsManager.Common (in microsoft.enterprisemanagement.operationsmanager.common.dll)

Usage

Visual Basic
Dim userRoleId As Guid
Dim taskId As Guid

Dim instance As New MonitoringTaskInUserRoleScopeAlreadyExistsException(userRoleId, taskId)

Syntax

Visual Basic
Public Sub New ( _
		userRoleId As Guid, _
		taskId As Guid _
)
C#
public MonitoringTaskInUserRoleScopeAlreadyExistsException (
		Guid userRoleId,
		Guid taskId
)
C++
public:
MonitoringTaskInUserRoleScopeAlreadyExistsException (
		Guid userRoleId, 
		Guid taskId
)
J#
public MonitoringTaskInUserRoleScopeAlreadyExistsException (
		Guid userRoleId, 
		Guid taskId
)
JScript
public function MonitoringTaskInUserRoleScopeAlreadyExistsException (
		userRoleId : Guid, 
		taskId : Guid
)

Parameters

userRoleId

A globally unique identifier (GUID) for the user role that the monitoring task already exists in.

taskId

A GUID for the monitoring task that already exists in the user role scope.

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