Sprache

SqlClientLogger.LogAssert(Boolean, String, String, String) Methode

Definition

Protokolliert die angegebene Nachricht, wenn value dies der Wert ist false.

Verwenden Sie für die neue Entwicklung Microsoft. Data.SqlClient. Diese Seite dokumentiert System.Data.SqlClient.

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

Parameter

value
Boolean

falseum die Nachricht zu protokollieren; andernfalls . true

type
String

Der zu protokollierende Typ.

method
String

Die Protokollierungsmethode.

message
String

Die zu protokollierende Nachricht.

Gibt zurück

truewenn die Nachricht nicht protokolliert wird; andernfalls . false

Gilt für: