Gets the name of the agent targeted by a specified task.
Namespace:
Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager
(in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
| Visual Basic |
Dim instance As AgentTaskInformation
Dim taskId As Guid
Dim returnValue As String
returnValue = instance.GetAgentName(taskId)
|
Syntax
| Visual Basic |
Public Function GetAgentName ( _
taskId As Guid _
) As String
|
| C# |
public string GetAgentName (
Guid taskId
)
|
| C++ |
public:
String^ GetAgentName (
Guid taskId
)
|
| J# |
public String GetAgentName (
Guid taskId
)
|
| JScript |
public function GetAgentName (
taskId : Guid
) : String
|
Parameters
- taskId
-
The globally unique identifier (GUID) of the task for which you
want to obtain an agent's name.
Return Value
Returns a
String that contains the name of the agent
targeted by a given task.
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 Server 2008, Windows Vista, Windows Server 2003, and
Windows XP
Target Platforms
Windows Server 2008,Windows Server 2003,Windows Vista,Windows
XP
See Also