Share via


ApiManagementContentType Klasse

Definition

Inhaltstypvertragsdetails.

public class ApiManagementContentType
type ApiManagementContentType = class
Public Class ApiManagementContentType
Vererbung
ApiManagementContentType

Konstruktoren

ApiManagementContentType()

Initialisiert eine neue instance von ApiManagementContentType.

Eigenschaften

ContentTypeId

Inhaltstyp-ID.

ContentTypeIdentifier

Inhaltstypbezeichner.

ContentTypeName

Name des Inhaltstyps. Muss 1 bis 250 Zeichen lang sein.

Description

Inhaltstypbeschreibung.

Name

Der Name der Ressource.

ResourceType

Der Typ der Ressource. Z.B. "Microsoft.Compute/virtualMachines" oder "Microsoft.Storage/storageAccounts".

Schema

Inhaltstypschema.

Um dieser Eigenschaft ein Objekt zuzuweisen, verwenden Sie FromObjectAsJson<T>(T, JsonSerializerOptions).

Um dieser Eigenschaft eine bereits formatierte JSON-Zeichenfolge zuzuweisen, verwenden Sie FromString(String).

Beispiele:

  • BinaryData.FromObjectAsJson("foo")Erstellt eine Nutzlast von "foo".
  • BinaryData.FromString("\"foo\"")Erstellt eine Nutzlast von "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" })Erstellt eine Nutzlast von { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}")Erstellt eine Nutzlast von { "key": "value" }.
Version

Inhaltstypversion.

Gilt für: