Represents the runtime class for XEvent objects. Each instance of this class represents a row in sys.server_event_session_events.
繼承階層
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Microsoft.SqlServer.Management.XEvent.Event
命名空間: Microsoft.SqlServer.Management.XEvent
組件: Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)
語法
'宣告
Public NotInheritable Class Event _
Inherits SfcInstance _
Implements ISfcDiscoverObject
'用途
Dim instance As Event
public sealed class Event : SfcInstance,
ISfcDiscoverObject
public ref class Event sealed : public SfcInstance,
ISfcDiscoverObject
[<SealedAttribute>]
type Event =
class
inherit SfcInstance
interface ISfcDiscoverObject
end
public final class Event extends SfcInstance implements ISfcDiscoverObject
Event 型別公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
Event() | Initializes a new instance of the Event class. |
![]() |
Event(Session, EventInfo) | Initializes a new instance of the Event class from the parent Package object and an EventInfo object. |
![]() |
Event(Session, String) | Initializes a new instance of the Event class from the parent Package object and the name of the event. |
上層
屬性
| 名稱 | 說明 | |
|---|---|---|
![]() |
AbstractIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
Actions | Gets the actions for the XEvent object constructed by the user. |
![]() |
Description | Gets or sets the Description property. The set accessor is for internal use only. |
![]() |
EventFields | Gets the EventFieldCollection. |
![]() |
ID | Gets the ID property as Int32. |
![]() |
IdentityKey | Gets the IdentityKey property. |
![]() |
Metadata | Returns metadata about the instance and its domain. (繼承自 SfcInstance。) |
![]() |
ModuleID | Gets the module identifier. |
![]() |
Name | Gets or sets the name of the Event object. |
![]() |
PackageName | Gets the name of the Package object that owns the event. |
![]() |
Parent | Gets or sets the parent Session object for an event. |
![]() |
Predicate | Gets or sets the predicate tree for PredicateExpression. |
![]() |
PredicateExpression | Gets or sets the string representation of the PredExpr object of an Event object. |
![]() |
Properties | Returns a collection instance properties. (繼承自 SfcInstance。) |
![]() |
State | Gets the state of the object used in Alter function in session. |
![]() |
Urn | Returns the uniform resource name of the SfcInstance object. (繼承自 SfcInstance。) |
上層
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
AddAction(String) | Creates an Action object with the specified name and adds it to the ActionCollection. |
![]() |
AddAction(ActionInfo) | Creates an Action object from an ActionInfo object and adds it to the ActionCollection. |
![]() |
CreateIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
Discover | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
Equals | (繼承自 Object。) |
![]() |
GetChildCollection | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
GetDomain | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
GetHashCode | (繼承自 Object。) |
![]() ![]() |
GetObjectFactory | Gets the object factory constructor used to create an Action object. |
![]() |
GetPropertySet | Returns the set of properties for the SfcInstance object. (繼承自 SfcInstance。) |
![]() |
GetType | (繼承自 Object。) |
![]() |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
InitializeUIPropertyState | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (繼承自 SfcInstance。) |
![]() |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (繼承自 SfcInstance。) |
![]() |
Refresh | Refreshes the object's properties by reading them from the server. (繼承自 SfcInstance。) |
![]() |
RemoveAction | Removes an Action object from the Session object. |
![]() |
ResetKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) |
![]() |
Serialize | Serializes the instance to XML. (繼承自 SfcInstance。) |
![]() |
SetEventInfo | Sets the EventInfo object for a pending XEvent object. |
![]() |
ToString | Returns a string representation of the instance Urn. (繼承自 SfcInstance。) |
上層
事件
| 名稱 | 說明 | |
|---|---|---|
![]() |
PropertyChanged | CLS-compliant event for property changes. (繼承自 SfcInstance。) |
![]() |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (繼承自 SfcInstance。) |
上層
明確 繼承 實作
| 名稱 | 說明 | |
|---|---|---|
![]() ![]() |
ISfcDiscoverObject.Discover | Discovers an Action object in metadata by using the ISfcDependencyDiscoveryObjectSink object. |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)