JsonData.SetEmptyArray(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.