你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloningInfo 构造函数

定义

重载

CloningInfo()

初始化 CloningInfo 类的新实例。

CloningInfo(String, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, IDictionary<String,String>, Nullable<Boolean>, String, String)

初始化 CloningInfo 类的新实例。

CloningInfo()

初始化 CloningInfo 类的新实例。

public CloningInfo ();
Public Sub New ()

适用于

CloningInfo(String, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, IDictionary<String,String>, Nullable<Boolean>, String, String)

初始化 CloningInfo 类的新实例。

public CloningInfo (string sourceWebAppId, Guid? correlationId = default, bool? overwrite = default, bool? cloneCustomHostNames = default, bool? cloneSourceControl = default, string sourceWebAppLocation = default, string hostingEnvironment = default, System.Collections.Generic.IDictionary<string,string> appSettingsOverrides = default, bool? configureLoadBalancing = default, string trafficManagerProfileId = default, string trafficManagerProfileName = default);
new Microsoft.Azure.Management.WebSites.Models.CloningInfo : string * Nullable<Guid> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * string * string -> Microsoft.Azure.Management.WebSites.Models.CloningInfo
Public Sub New (sourceWebAppId As String, Optional correlationId As Nullable(Of Guid) = Nothing, Optional overwrite As Nullable(Of Boolean) = Nothing, Optional cloneCustomHostNames As Nullable(Of Boolean) = Nothing, Optional cloneSourceControl As Nullable(Of Boolean) = Nothing, Optional sourceWebAppLocation As String = Nothing, Optional hostingEnvironment As String = Nothing, Optional appSettingsOverrides As IDictionary(Of String, String) = Nothing, Optional configureLoadBalancing As Nullable(Of Boolean) = Nothing, Optional trafficManagerProfileId As String = Nothing, Optional trafficManagerProfileName As String = Nothing)

参数

sourceWebAppId
String

源应用的 ARM 资源 ID。 对于生产槽,应用资源 ID 的格式为 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName},对于其他槽,则采用 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} 的形式。

correlationId
Nullable<Guid>

克隆操作的相关 ID。 此 ID 将多个克隆操作关联在一起以使用相同的快照。

overwrite
Nullable<Boolean>

<code>true</code> 以覆盖目标应用;否则为 <代码>false</code>。

cloneCustomHostNames
Nullable<Boolean>

<code>true</code> 用于克隆源应用中的自定义主机名;否则, <代码>为 false</code>。

cloneSourceControl
Nullable<Boolean>

<code>true</code> 用于从源应用克隆源代码管理;否则, <代码>为 false</code>。

sourceWebAppLocation
String

源应用的位置,例如:美国西部或北欧

hostingEnvironment
String

应用服务环境。

appSettingsOverrides
IDictionary<String,String>

克隆应用的应用程序设置替代。 如果指定,这些设置将覆盖从源应用克隆的设置。 否则,将保留源应用中的应用程序设置。

configureLoadBalancing
Nullable<Boolean>

<code>true</code> ,用于为源应用和目标应用配置负载均衡。

trafficManagerProfileId
String

要使用的流量管理器配置文件的 ARM 资源 ID(如果存在)。 流量管理器资源 ID 的格式为 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}。

trafficManagerProfileName
String

要创建的流量管理器配置文件的名称。 仅当流量管理器配置文件尚不存在时,才需要这样做。

适用于