Debug.WriteIfInterpolatedStringHandler(Int32, Int32, Boolean, Boolean) 构造函数

定义

创建处理程序的实例。

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)

参数

literalLength
Int32

内插字符串中内插表达式之外的常量字符数。

formattedCount
Int32

内插字符串中的内插表达式数。

condition
Boolean

传递给 Debug 方法的条件布尔值。

shouldAppend
Boolean

一个值,该值指示是否应继续设置格式。

注解

这只能由编译器生成的代码调用。 参数不会验证,否则它们适用于打算直接使用的成员。

适用于