Share via


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

適用対象