AgentTaskInformation.GetAgentNames Method

Updated: April 16, 2012

Gets a read-only collection of the names of the agents targeted by the tasks in this batch of tasks. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As AgentTaskInformation Dim returnValue As ReadOnlyCollection(Of String) returnValue = instance.GetAgentNamesPublic Function GetAgentNames As ReadOnlyCollection(Of String)public ReadOnlyCollection<string> GetAgentNames ()public: ReadOnlyCollection<String^>^ GetAgentNames ()public ReadOnlyCollection<String> GetAgentNames ()public function GetAgentNames () : ReadOnlyCollection<String>Return ValueReturns a ReadOnlyCollection of String values that contain the names of the agents targeted by the tasks in this batch of tasks.
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