SqlClientLogger.LogAssert(Boolean, String, String, String) 方法

定义

记录指定的消息(如果 valuefalse)。

public:
 bool LogAssert(bool value, System::String ^ type, System::String ^ method, System::String ^ message);
public bool LogAssert(bool value, string type, string method, string message);
member this.LogAssert : bool * string * string * string -> bool
Public Function LogAssert (value As Boolean, type As String, method As String, message As String) As Boolean

参数

value
Boolean

false 记录消息;否则,为 true.

type
String

要记录的类型。

method
String

日志记录方法。

message
String

要记录的消息。

返回

true 如果未记录消息,则为否则,为 false.

适用于