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

MachineExtensionPatch.ProtectedSettings 属性

定义

该扩展可以包含 protectedSettings 或 protectedSettingsFromKeyVault,或者根本不包含受保护的设置。

若要将对象分配给此属性,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

public BinaryData ProtectedSettings { get; set; }
member this.ProtectedSettings : BinaryData with get, set
Public Property ProtectedSettings As BinaryData

属性值

适用于