SqlClientLogger.LogAssert(Boolean, String, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
记录指定的消息(如果 value 为 false)。
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.