次の方法で共有


ManagementServer.GetAgentAssignments Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets all the agent assignment rules in the management server.

Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim instance As ManagementServer
Dim returnValue As ReadOnlyCollection(Of AgentAssignment)

returnValue = instance.GetAgentAssignments

Syntax

'Declaration
Public Function GetAgentAssignments As ReadOnlyCollection(Of AgentAssignment)
public ReadOnlyCollection<AgentAssignment> GetAgentAssignments ()
public:
ReadOnlyCollection<AgentAssignment^>^ GetAgentAssignments ()
public ReadOnlyCollection<AgentAssignment> GetAgentAssignments ()
public function GetAgentAssignments () : ReadOnlyCollection<AgentAssignment>

Return Value

Returns a ReadOnlyCollection of AgentAssignment objects.

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 Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

ManagementServer Class
ManagementServer Members
Microsoft.EnterpriseManagement.Administration Namespace