Determines whether the user who is calling the method is in the specified profile. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementGroup
Dim monitoringProfileId As Guid
Dim returnValue As Boolean

returnValue = instance.IsUserInMonitoringProfile(monitoringProfileId)

Syntax

Visual Basic
Public Function IsUserInMonitoringProfile ( _
		monitoringProfileId As Guid _
) As Boolean
C#
public bool IsUserInMonitoringProfile (
		Guid monitoringProfileId
)
C++
public:
bool IsUserInMonitoringProfile (
		Guid monitoringProfileId
)
J#
public boolean IsUserInMonitoringProfile (
		Guid monitoringProfileId
)
JScript
public function IsUserInMonitoringProfile (
		monitoringProfileId : Guid
) : boolean

Parameters

monitoringProfileId

The globally unique identifier (GUID) for the profile to check whether the user is in the profile or not.

Return Value

true if the user is in the profile; 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