Partilhar via


JsonObject.ConvertToJsonContext Constructors

Definition

Overloads

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean)

Initializes a new instance of the JsonObject.ConvertToJsonContext struct.

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean, StringEscapeHandling, PSCmdlet, CancellationToken)

Initializes a new instance of the JsonObject.ConvertToJsonContext struct.

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean, CancellationToken, StringEscapeHandling, PSCmdlet)

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean)

Initializes a new instance of the JsonObject.ConvertToJsonContext struct.

public ConvertToJsonContext (int maxDepth, bool enumsAsStrings, bool compressOutput);
new Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext : int * bool * bool -> Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext
Public Sub New (maxDepth As Integer, enumsAsStrings As Boolean, compressOutput As Boolean)

Parameters

maxDepth
Int32

The maximum depth to visit the object.

enumsAsStrings
Boolean

Indicates whether to use enum names for the JSON conversion.

compressOutput
Boolean

Indicates whether to get the compressed output.

Applies to

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean, StringEscapeHandling, PSCmdlet, CancellationToken)

Initializes a new instance of the JsonObject.ConvertToJsonContext struct.

public ConvertToJsonContext (int maxDepth, bool enumsAsStrings, bool compressOutput, Newtonsoft.Json.StringEscapeHandling stringEscapeHandling, System.Management.Automation.PSCmdlet targetCmdlet, System.Threading.CancellationToken cancellationToken);
new Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext : int * bool * bool * Newtonsoft.Json.StringEscapeHandling * System.Management.Automation.PSCmdlet * System.Threading.CancellationToken -> Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext
Public Sub New (maxDepth As Integer, enumsAsStrings As Boolean, compressOutput As Boolean, stringEscapeHandling As StringEscapeHandling, targetCmdlet As PSCmdlet, cancellationToken As CancellationToken)

Parameters

maxDepth
Int32

The maximum depth to visit the object.

enumsAsStrings
Boolean

Indicates whether to use enum names for the JSON conversion.

compressOutput
Boolean

Indicates whether to get the compressed output.

stringEscapeHandling
Newtonsoft.Json.StringEscapeHandling

Specifies how strings are escaped when writing JSON text.

targetCmdlet
PSCmdlet

Specifies the cmdlet that is calling this method.

cancellationToken
CancellationToken

Specifies the cancellation token for cancelling the operation.

Applies to

JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean, CancellationToken, StringEscapeHandling, PSCmdlet)

public ConvertToJsonContext (int maxDepth, bool enumsAsStrings, bool compressOutput, System.Threading.CancellationToken cancellationToken, Newtonsoft.Json.StringEscapeHandling stringEscapeHandling, System.Management.Automation.PSCmdlet targetCmdlet);
new Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext : int * bool * bool * System.Threading.CancellationToken * Newtonsoft.Json.StringEscapeHandling * System.Management.Automation.PSCmdlet -> Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext
Public Sub New (maxDepth As Integer, enumsAsStrings As Boolean, compressOutput As Boolean, cancellationToken As CancellationToken, stringEscapeHandling As StringEscapeHandling, targetCmdlet As PSCmdlet)

Parameters

maxDepth
Int32
enumsAsStrings
Boolean
compressOutput
Boolean
cancellationToken
CancellationToken
stringEscapeHandling
Newtonsoft.Json.StringEscapeHandling
targetCmdlet
PSCmdlet

Applies to