Freigeben über


AgentTaskInformation.GetAgentName Method (Guid)

 

Applies To: Operations Manager for System Center 2012

Gets the name of the agent targeted by a specified task.

Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

public string GetAgentName(
    Guid taskId
)
public:
String^ GetAgentName(
    Guid taskId
)
member GetAgentName : 
        taskId:Guid -> string
Public Function GetAgentName (
    taskId As Guid
) As String

Parameters

  • taskId
    Type: System.Guid

    The globally unique identifier (GUID) of the task for which you want to obtain an agent's name.

Return Value

Type: System.String

Returns a String that contains the name of the agent targeted by a given task.

See Also

AgentTaskInformation Class
Microsoft.EnterpriseManagement.Administration Namespace

Return to top