Share via


Agent.Name property

Gets or sets a string value that contains the computer name for this instance of the class that derives from the Agent class.

Namespace:  Microsoft.Exchange.Data.Transport
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Protected Friend Property Name As String
    Get
    Friend Set
'Usage
Dim value As String

value = Me.Name
protected internal string Name { get; internal set; }

Property value

Type: System.String
A string that contains the name of the server where the transport agent is installed.

Remarks

When this property is returned by a transport agent derived from either the DeliveryAgent or the SmtpReceiveAgent class, the fully qualified domain name (FQDN) is returned. When this property is returned by a transport agent derived from the RoutingAgent class, the host name of the local computer is returned. For information about the value of the host name returned, see Dns.GetHostname().

See also

Reference

Agent class

Agent members

Microsoft.Exchange.Data.Transport namespace