TraceableBase.AssertTraceEvent Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AssertTraceEvent(Boolean, TraceEventType, TraceId, String) | |
AssertTraceEvent(Boolean, TraceEventType, Int32, String) |
C#
public bool AssertTraceEvent(bool condition, System.Diagnostics.TraceEventType eventType, Microsoft.Data.Tools.Diagnostics.TraceId traceId, string message);
member this.AssertTraceEvent : bool * System.Diagnostics.TraceEventType * Microsoft.Data.Tools.Diagnostics.TraceId * string -> bool
Public Function AssertTraceEvent (condition As Boolean, eventType As TraceEventType, traceId As TraceId, message As String) As Boolean
Parameters
- condition
- Boolean
- eventType
- TraceEventType
- traceId
- Microsoft.Data.Tools.Diagnostics.TraceId
- message
- String
Returns
Applies to
Microsoft.SQLServer.DacFx 162.2.111 и други версии
Продукт | Версии |
---|---|
Microsoft.SQLServer.DacFx | 140.3881.1, 150.18208.0, 160.2004021.0, 161.6374.0, 162.2.111 |
C#
public bool AssertTraceEvent(bool condition, System.Diagnostics.TraceEventType eventType, int traceId, string message);
member this.AssertTraceEvent : bool * System.Diagnostics.TraceEventType * int * string -> bool
Public Function AssertTraceEvent (condition As Boolean, eventType As TraceEventType, traceId As Integer, message As String) As Boolean
Parameters
- condition
- Boolean
- eventType
- TraceEventType
- traceId
- Int32
- message
- String
Returns
Applies to
Microsoft.SQLServer.DacFx 162.2.111 и други версии
Продукт | Версии |
---|---|
Microsoft.SQLServer.DacFx | 140.3881.1, 150.18208.0, 160.2004021.0, 161.6374.0, 162.2.111 |