Επεξεργασία

Κοινή χρήση μέσω


Debug.WriteIfInterpolatedStringHandler(Int32, Int32, Boolean, Boolean) Constructor

Definition

Creates an instance of the handler.

public:
 WriteIfInterpolatedStringHandler(int literalLength, int formattedCount, bool condition, [Runtime::InteropServices::Out] bool % shouldAppend);
public WriteIfInterpolatedStringHandler (int literalLength, int formattedCount, bool condition, out bool shouldAppend);
new System.Diagnostics.Debug.WriteIfInterpolatedStringHandler : int * int * bool * bool -> System.Diagnostics.Debug.WriteIfInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, condition As Boolean, ByRef shouldAppend As Boolean)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

condition
Boolean

The condition Boolean passed to the Debug method.

shouldAppend
Boolean

A value indicating whether formatting should proceed.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to