JsonData.SetEmptyArray(String) Method

Definition

Sets the property of an object to a new empty array.

public Azure.Core.JsonData SetEmptyArray (string propertyName);
member this.SetEmptyArray : string -> Azure.Core.JsonData
Public Function SetEmptyArray (propertyName As String) As JsonData

Parameters

propertyName
System.String

The property to set.

Returns

JsonData

A JsonData for the newly created empty array.

Remarks

If the property already exists, the value is overwritten. If the Kind property is not System.Text.Json.JsonValueKind.Object this method throws System.InvalidOperationException.

Applies to