Gets the name of the agent targeted by a
specified task. Namespace:
Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As AgentTaskInformation Dim taskId As Guid Dim returnValue As String returnValue = instance.GetAgentName(taskId)Public Function GetAgentName ( _ taskId As Guid _ ) As Stringpublic string GetAgentName ( Guid taskId )public: String^ GetAgentName ( Guid taskId )public String GetAgentName ( Guid taskId )public function GetAgentName ( taskId : Guid ) : StringParameterstaskIdThe globally unique identifier (GUID) of the task for which you want to obtain an agent's name.Return ValueReturns a String that contains the name of the agent targeted by a given task.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As AgentTaskInformation Dim taskId As Guid Dim returnValue As String returnValue = instance.GetAgentName(taskId)Public Function GetAgentName ( _ taskId As Guid _ ) As Stringpublic string GetAgentName ( Guid taskId )public: String^ GetAgentName ( Guid taskId )public String GetAgentName ( Guid taskId )public function GetAgentName ( taskId : Guid ) : StringParameterstaskIdThe globally unique identifier (GUID) of the task for which you want to obtain an agent's name.Return ValueReturns a String that contains the name of the agent targeted by a given task.
Any public static
(Shared in Visual Basic) members of this type are thread safe. Any
instance members are not guaranteed to be thread safe.