Determines whether the specified user is assigned the scope that is specified in the monitoring object scope list. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim userSid As String
Dim scopeList As IList(Of Guid)
Dim returnValue As Boolean

returnValue = instance.IsUserInMonitoringObjectScope(userSid, scopeList)

Syntax

Visual Basic
Public Function IsUserInMonitoringObjectScope ( _
		userSid As String, _
		scopeList As IList(Of Guid) _
) As Boolean
C#
public bool IsUserInMonitoringObjectScope (
		string userSid,
		IList<Guid> scopeList
)
C++
public:
bool IsUserInMonitoringObjectScope (
		String^ userSid, 
		IList<Guid>^ scopeList
)
J#
public boolean IsUserInMonitoringObjectScope (
		String userSid, 
		IList<Guid> scopeList
)
JScript
public function IsUserInMonitoringObjectScope (
		userSid : String, 
		scopeList : IList<Guid>
) : boolean

Parameters

userSid

The identifier for the user to check the scope for.

scopeList

The list of monitoring object identifiers to check.

Return Value

true if the user is assigned the scope in the scope list; otherwise, false.

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