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

適用於