共用方式為


HostName Class

Definition

Details of a hostname derived from a domain.

public class HostName
type HostName = class
Public Class HostName
Inheritance
HostName

Constructors

HostName()

Initializes a new instance of the HostName class.

HostName(String, IList<String>, String, Nullable<AzureResourceType>, Nullable<CustomHostNameDnsRecordType>, Nullable<HostNameType>)

Initializes a new instance of the HostName class.

Properties

AzureResourceName

Gets or sets name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.

AzureResourceType

Gets or sets type of the Azure resource the hostname is assigned to. Possible values include: 'Website', 'TrafficManager'

CustomHostNameDnsRecordType

Gets or sets type of the DNS record. Possible values include: 'CName', 'A'

HostNameType

Gets or sets type of the hostname. Possible values include: 'Verified', 'Managed'

Name

Gets or sets name of the hostname.

SiteNames

Gets or sets list of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.

Applies to