Share via


AgentTaskInformation.GetAgentName Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

'Usage
Dim instance As AgentTaskInformation
Dim taskId As Guid
Dim returnValue As String

returnValue = instance.GetAgentName(taskId)

Syntax

'Declaration
Public Function GetAgentName ( _
    taskId As Guid _
) As String
public string GetAgentName (
    Guid taskId
)
public:
String^ GetAgentName (
    Guid taskId
)
public String GetAgentName (
    Guid taskId
)
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 Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

AgentTaskInformation Class
AgentTaskInformation Members
Microsoft.EnterpriseManagement.Administration Namespace