Delen via


StackMajorVersion Class

Definition

Application stack major version.

public class StackMajorVersion : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppService.Models.StackMajorVersion>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppService.Models.StackMajorVersion>
type StackMajorVersion = class
    interface IJsonModel<StackMajorVersion>
    interface IPersistableModel<StackMajorVersion>
Public Class StackMajorVersion
Implements IJsonModel(Of StackMajorVersion), IPersistableModel(Of StackMajorVersion)
Inheritance
StackMajorVersion
Implements

Constructors

StackMajorVersion()

Initializes a new instance of StackMajorVersion.

Properties

AppSettingsDictionary

<appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

DisplayVersion

Application stack major version (display only).

IsApplicationInsights

<code>true</code> if this supports Application Insights; otherwise, <code>false</code>.

IsDefault

<code>true</code> if this is the default major version; otherwise, <code>false</code>.

IsDeprecated

<code>true</code> if this stack has been deprecated, otherwise <code>false</code>.

IsHidden

<code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.

IsPreview

<code>true</code> if this stack is in Preview, otherwise <code>false</code>.

MinorVersions

Minor versions associated with the major version.

RuntimeVersion

Application stack major version (runtime only).

SiteConfigPropertiesDictionary

<siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<StackMajorVersion>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<StackMajorVersion>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<StackMajorVersion>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<StackMajorVersion>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<StackMajorVersion>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to