ManagementServer.EditAgentAssignment Method

Updated: April 16, 2012

Edits an agent assignment rule in the management server. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As ManagementServer Dim domain As String Dim ldapQuery As String Dim excludeList As ReadOnlyCollection(Of String) instance.EditAgentAssignment(domain, ldapQuery, excludeList)Public Sub EditAgentAssignment ( _ domain As String, _ ldapQuery As String, _ excludeList As ReadOnlyCollection(Of String) _ )public void EditAgentAssignment ( string domain, string ldapQuery, ReadOnlyCollection<string> excludeList )public: void EditAgentAssignment ( String^ domain, String^ ldapQuery, ReadOnlyCollection<String^>^ excludeList )public void EditAgentAssignment ( String domain, String ldapQuery, ReadOnlyCollection<String> excludeList )public function EditAgentAssignment ( domain : String, ldapQuery : String, excludeList : ReadOnlyCollection<String> )ParametersdomainThe name of the agent assignment rule as a String object to edit.ldapQueryLightweight Directory Access Protocol (LDAP) query as a String object by which to search for the agent rules to edit.excludeListA ReadOnlyCollection object of String objects that represent the names of agents to be excluded from the edit.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms