Aracılığıyla paylaş


ArmAppServiceModelFactory.AppServiceHostName Method

Definition

Initializes a new instance of AppServiceHostName.

public static Azure.ResourceManager.AppService.Models.AppServiceHostName AppServiceHostName (string name = default, System.Collections.Generic.IEnumerable<string> siteNames = default, string azureResourceName = default, Azure.ResourceManager.AppService.Models.AppServiceResourceType? azureResourceType = default, Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType? customHostNameDnsRecordType = default, Azure.ResourceManager.AppService.Models.AppServiceHostNameType? hostNameType = default);
static member AppServiceHostName : string * seq<string> * string * Nullable<Azure.ResourceManager.AppService.Models.AppServiceResourceType> * Nullable<Azure.ResourceManager.AppService.Models.CustomHostNameDnsRecordType> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceHostNameType> -> Azure.ResourceManager.AppService.Models.AppServiceHostName
Public Shared Function AppServiceHostName (Optional name As String = Nothing, Optional siteNames As IEnumerable(Of String) = Nothing, Optional azureResourceName As String = Nothing, Optional azureResourceType As Nullable(Of AppServiceResourceType) = Nothing, Optional customHostNameDnsRecordType As Nullable(Of CustomHostNameDnsRecordType) = Nothing, Optional hostNameType As Nullable(Of AppServiceHostNameType) = Nothing) As AppServiceHostName

Parameters

name
String

Name of the hostname.

siteNames
IEnumerable<String>

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.

azureResourceName
String

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
Nullable<AppServiceResourceType>

Type of the Azure resource the hostname is assigned to.

customHostNameDnsRecordType
Nullable<CustomHostNameDnsRecordType>

Type of the DNS record.

hostNameType
Nullable<AppServiceHostNameType>

Type of the hostname.

Returns

A new AppServiceHostName instance for mocking.

Applies to