次の方法で共有


PrometheusRule.ToJson(JsonObject, SerializationMode) Method

Definition

Serializes this instance of PrometheusRule into a JsonNode.

public Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonNode ToJson (Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.SerializationMode serializationMode);
abstract member ToJson : Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonObject * Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.SerializationMode -> Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonNode
override this.ToJson : Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonObject * Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.SerializationMode -> Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.Json.JsonNode
Public Function ToJson (container As JsonObject, serializationMode As SerializationMode) As JsonNode

Parameters

container
JsonObject

The JsonObject container to serialize this object into. If the caller passes in null, a new instance will be created and returned to the caller.

serializationMode
SerializationMode

Allows the caller to choose the depth of the serialization. See SerializationMode.

Returns

a serialized instance of PrometheusRule as a JsonNode.

Implements

Applies to