Applies To: Operations Manager for System Center 2012
Edits an agent assignment rule in the management server.
Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public void EditAgentAssignment(
    string domain,
    string ldapQuery,
    ReadOnlyCollection<string> excludeList
)
public:
void EditAgentAssignment(
    String^ domain,
    String^ ldapQuery,
    ReadOnlyCollection<String^>^ excludeList
)
member EditAgentAssignment : 
        domain:string *
        ldapQuery:string *
        excludeList:ReadOnlyCollection<string> -> unit
Public Sub EditAgentAssignment (
    domain As String,
    ldapQuery As String,
    excludeList As ReadOnlyCollection(Of String)
)
Parameters
- domain 
 Type: System.String- The name of the agent assignment rule as a String object to edit. 
- ldapQuery 
 Type: System.String- Lightweight Directory Access Protocol (LDAP) query as a String object by which to search for the agent rules to edit. 
- excludeList 
 Type: System.Collections.ObjectModel.ReadOnlyCollection<String>- A T:System.Collections.ObjectModel.ReadOnlyCollection object of String objects that represent the names of agents to be excluded from the edit. 
See Also
ManagementServer Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top