你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StackMajorVersion 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StackMajorVersion() |
初始化 StackMajorVersion 类的新实例。 |
StackMajorVersion(String, String, Nullable<Boolean>, IList<StackMinorVersion>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, IDictionary<String,Object>, IDictionary<String,Object>) |
初始化 StackMajorVersion 类的新实例。 |
StackMajorVersion()
初始化 StackMajorVersion 类的新实例。
public StackMajorVersion ();
Public Sub New ()
适用于
StackMajorVersion(String, String, Nullable<Boolean>, IList<StackMinorVersion>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, IDictionary<String,Object>, IDictionary<String,Object>)
初始化 StackMajorVersion 类的新实例。
public StackMajorVersion (string displayVersion = default, string runtimeVersion = default, bool? isDefault = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.StackMinorVersion> minorVersions = default, bool? applicationInsights = default, bool? isPreview = default, bool? isDeprecated = default, bool? isHidden = default, System.Collections.Generic.IDictionary<string,object> appSettingsDictionary = default, System.Collections.Generic.IDictionary<string,object> siteConfigPropertiesDictionary = default);
new Microsoft.Azure.Management.WebSites.Models.StackMajorVersion : string * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.StackMinorVersion> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.Azure.Management.WebSites.Models.StackMajorVersion
Public Sub New (Optional displayVersion As String = Nothing, Optional runtimeVersion As String = Nothing, Optional isDefault As Nullable(Of Boolean) = Nothing, Optional minorVersions As IList(Of StackMinorVersion) = Nothing, Optional applicationInsights As Nullable(Of Boolean) = Nothing, Optional isPreview As Nullable(Of Boolean) = Nothing, Optional isDeprecated As Nullable(Of Boolean) = Nothing, Optional isHidden As Nullable(Of Boolean) = Nothing, Optional appSettingsDictionary As IDictionary(Of String, Object) = Nothing, Optional siteConfigPropertiesDictionary As IDictionary(Of String, Object) = Nothing)
参数
- displayVersion
- String
应用程序堆栈主版本 (仅显示) 。
- runtimeVersion
- String
应用程序堆栈主版本 (运行时仅) 。
- minorVersions
- IList<StackMinorVersion>
与主版本关联的次要版本。
<如果这支持 Application Insights,则为代码>true/code>;否则为<代码>false</code><。
- appSettingsDictionary
- IDictionary<String,Object>
<appSettings><appSetting name=“FUNCTIONS_WORKER_RUNTIME” value=“dotnet” /></appSettings> 示例:所有函数应用都需要 AppSetting:“FUNCTIONS_WORKER_RUNTIME”才能设置堆栈名称
- siteConfigPropertiesDictionary
- IDictionary<String,Object>
<siteConfigProperties siteConfigProperty><name=“Use32BitWorkerProcess” value=“false” /></siteConfigProperties> 示例:所有 Linux 函数应用,需要 Use32BitWorkerProcess 设置为 0