ServerTraceEvent 類別
The ServerTraceEvent object represents the SQL Server server trace events that can be included in a server trace event set.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.ServerTraceEvent
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public NotInheritable Class ServerTraceEvent
'用途
Dim instance As ServerTraceEvent
public sealed class ServerTraceEvent
public ref class ServerTraceEvent sealed
[<SealedAttribute>]
type ServerTraceEvent = class end
public final class ServerTraceEvent
ServerTraceEvent 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
AssemblyLoad | Gets a server trace event that can be included in the event set. | |
AuditAddDBUserEvent | Gets a server trace event that can be included in the event set. | |
AuditAddloginEvent | Gets a server trace event that can be included in the event set. | |
AuditAddLoginToServerRoleEvent | Gets a server trace event that can be included in the event set. | |
AuditAddMemberToDBRoleEvent | Gets a server trace event that can be included in the event set. | |
AuditAddRoleEvent | Gets a server trace event that can be included in the event set. | |
AuditAppRoleChangePasswordEvent | Gets a server trace event that can be included in the event set. | |
AuditBackupRestoreEvent | Gets a server trace event that can be included in the event set. | |
AuditChangeAuditEvent | Gets a server trace event that can be included in the event set. | |
AuditChangeDatabaseOwner | Gets a server trace event that can be included in the event set. | |
AuditDatabaseManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseObjectAccessEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseObjectGdrEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseObjectManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseObjectTakeOwnershipEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseOperationEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabasePrincipalImpersonationEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabasePrincipalManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditDatabaseScopeGdrEvent | Gets a server trace event that can be included in the event set. | |
AuditDbccEvent | Gets a server trace event that can be included in the event set. | |
AuditFulltext | Gets a server trace event that can be included in the event set. | |
AuditLogin | Gets a server trace event that can be included in the event set. | |
AuditLoginChangePasswordEvent | Gets a server trace event that can be included in the event set. | |
AuditLoginChangePropertyEvent | Gets a server trace event that can be included in the event set. | |
AuditLoginFailed | Gets a server trace event that can be included in the event set. | |
AuditLoginGdrEvent | Gets a server trace event that can be included in the event set. | |
AuditLogout | Gets a server trace event that can be included in the event set. | |
AuditSchemaObjectAccessEvent | Gets a server trace event that can be included in the event set. | |
AuditSchemaObjectGdrEvent | Gets a server trace event that can be included in the event set. | |
AuditSchemaObjectManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditSchemaObjectTakeOwnershipEvent | Gets a server trace event that can be included in the event set. | |
AuditServerAlterTraceEvent | Gets a server trace event that can be included in the event set. | |
AuditServerObjectGdrEvent | Gets a server trace event that can be included in the event set. | |
AuditServerObjectManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditServerObjectTakeOwnershipEvent | Gets a server trace event that can be included in the event set. | |
AuditServerOperationEvent | Gets a server trace event that can be included in the event set. | |
AuditServerPrincipalImpersonationEvent | Gets a server trace event that can be included in the event set. | |
AuditServerPrincipalManagementEvent | Gets a server trace event that can be included in the event set. | |
AuditServerScopeGdrEvent | Gets a server trace event that can be included in the event set. | |
BitmapWarning | Gets a server trace event that can be included in the event set. | |
BlockedProcessReport | Gets a server trace event that can be included in the event set. | |
CpuThresholdExceeded | Gets a server trace event that can be included in the event set. | |
DatabaseMirroringStateChange | Gets a server trace event that can be included in the event set. | |
DatabaseSuspectDataPage | Gets a server trace event that can be included in the event set. | |
DataFileAutoGrow | Gets a server trace event that can be included in the event set. | |
DataFileAutoShrink | Gets a server trace event that can be included in the event set. | |
DeadlockGraph | Gets a server trace event that can be included in the event set. | |
DeprecationAnnouncement | Gets a server trace event that can be included in the event set. | |
DeprecationFinalSupport | Gets a server trace event that can be included in the event set. | |
Errorlog | Gets a server trace event that can be included in the event set. | |
Eventlog | Gets a server trace event that can be included in the event set. | |
Exception | Gets a server trace event that can be included in the event set. | |
ExchangeSpillEvent | Gets a server trace event that can be included in the event set. | |
ExecutionWarnings | Gets a server trace event that can be included in the event set. | |
FtCrawlAborted | Gets a server trace event that can be included in the event set. | |
FtCrawlStarted | Gets a server trace event that can be included in the event set. | |
FtCrawlStopped | Gets a server trace event that can be included in the event set. | |
HashWarning | Gets a server trace event that can be included in the event set. | |
LockDeadlock | Gets a server event that can be included in the event set. | |
LockDeadlockChain | Gets a server trace event that can be included in the event set. | |
LockEscalation | Gets a server trace event that can be included in the event set. | |
LogFileAutoGrow | Gets a server trace event that can be included in the event set. | |
LogFileAutoShrink | Gets a server trace event that can be included in the event set. | |
MissingColumnStatistics | Gets a server trace event that can be included in the event set. | |
MissingJoinPredicate | Gets a server trace event that can be included in the event set. | |
MountTape | Gets a server trace event that can be included in the event set. | |
ObjectAltered | Gets a server trace event that can be included in the event set. | |
ObjectCreated | Gets a server trace event that can be included in the event set. | |
ObjectDeleted | Gets a server trace event that can be included in the event set. | |
OledbCallEvent | Gets a server trace event that can be included in the event set. | |
OledbDatareadEvent | Gets a server trace event that can be included in the event set. | |
OledbErrors | Gets a server trace event that can be included in the event set. | |
OledbProviderInformation | Gets a server trace event that can be included in the event set. | |
OledbQueryinterfaceEvent | Gets a server trace event that can be included in the event set. | |
Qn_dynamics | Gets a server trace event that can be included in the event set. | |
Qn_parameterTable | Gets a server trace event that can be included in the event set. | |
Qn_subscription | Gets a server trace event that can be included in the event set. | |
Qn_template | Gets a server trace event that can be included in the event set. | |
ServerMemoryChange | Gets a server trace event that can be included in the event set. | |
ShowplanAllForQueryCompile | Gets a server trace event that can be included in the event set. | |
ShowplanXml | Gets a server trace event that can be included in the event set. | |
ShowplanXmlForQueryCompile | Gets a server trace event that can be included in the event set. | |
ShowplanXmlStatisticsProfile | Gets a server trace event that can be included in the event set. | |
SortWarnings | Gets a server trace event that can be included in the event set. | |
SpCacheinsert | Gets a server trace event that can be included in the event set. | |
SpCachemiss | Gets a server trace event that can be included in the event set. | |
SpCacheremove | Gets a server trace event that can be included in the event set. | |
SpRecompile | Gets a server trace event that can be included in the event set. | |
SqlStmtrecompile | Gets a server trace event that can be included in the event set. | |
TraceAllEvents | Gets a server trace event category that can be included in the event set. | |
TraceClr | Gets a server trace event category that can be included in the event set. | |
TraceDatabase | Gets a server trace event category that can be included in the event set. | |
TraceDeprecation | Gets a server trace event category that can be included in the event set. | |
TraceErrorsAndWarnings | Gets a server trace event category that can be included in the event set. | |
TraceFileClose | Gets a server trace event category that can be included in the event set. | |
TraceFullText | Gets a server trace event category that can be included in the event set. | |
TraceLocks | Gets a server trace event category that can be included in the event set. | |
TraceObjects | Gets a server trace event that can be included in the event set. | |
TraceOledb | Gets a server trace event category that can be included in the event set. | |
TracePerformance | Gets a server trace event category that can be included in the event set. | |
TraceQueryNotifications | Gets a server trace event category that can be included in the event set. | |
TraceSecurityAudit | Gets a server trace event category that can be included in the event set. | |
TraceServer | Gets a server trace event category that can be included in the event set. | |
TraceStoredProcedures | Gets a server trace event category that can be included in the event set. | |
TraceTsql | Gets a server trace event that can be included in the event set. | |
TraceUserConfigurable | Gets a server trace event category that can be included in the event set. | |
Userconfigurable0 | Gets a server trace event that can be included in the event set. | |
Userconfigurable1 | Gets a server trace event that can be included in the event set. | |
Userconfigurable2 | Gets a server trace event that can be included in the event set. | |
Userconfigurable3 | Gets a server trace event that can be included in the event set. | |
Userconfigurable4 | Gets a server trace event that can be included in the event set. | |
Userconfigurable5 | Gets a server trace event that can be included in the event set. | |
Userconfigurable6 | Gets a server trace event that can be included in the event set. | |
Userconfigurable7 | Gets a server trace event that can be included in the event set. | |
Userconfigurable8 | Gets a server trace event that can be included in the event set. | |
Userconfigurable9 | Gets a server trace event that can be included in the event set. | |
UserErrorMessage | Gets a server trace event that can be included in the event set. | |
XqueryStaticType | Gets a server trace event that can be included in the event set. |
上層
方法
名稱 | 說明 | |
---|---|---|
Add | Returns a server trace event set by adding two server trace events. | |
BitwiseOr | Returns a new server trace event that includes both of the named Server Trace Events. | |
Equals | Determines whether the referenced server trace event object is equal to a specified object. (覆寫 Object.Equals(Object)。) | |
GetHashCode | 僅供參考之用。不支援。我們無法保證未來的相容性。 (覆寫 Object.GetHashCode()。) | |
GetType | (繼承自 Object。) | |
ToString | Returns the referenced object in string format. (覆寫 Object.ToString()。) |
上層
運算子
名稱 | 說明 | |
---|---|---|
Addition | Creates a server trace event set by performing an addition operation on two server trace event objects. | |
BitwiseOr | Creates a server trace event set by performing a bitwise OR operation on two ServerTraceEvent objects. | |
Equality | Creates a server trace event set by comparing two ServerTraceEvent objects. | |
Implicit(ServerTraceEvent to ServerTraceEventSet) | Converts a single server trace event to a server trace event set. | |
Inequality | Creates a server event set by comparing on two ServerTraceEvent objects. |
上層
備註
The ServerTraceEvent object contains a property for each trace event to which the instance of SQL Server can respond. The actual set of trace events is specified using the ServerTraceEventSet object.
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
Thread Safety
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間