共用方式為


Event.Parent 屬性

Gets or sets the parent Session object for an event.

命名空間:  Microsoft.SqlServer.Management.XEvent
組件:  Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)> _
Public Property Parent As Session 
    Get 
    Set
'用途
Dim instance As Event 
Dim value As Session 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)]
public Session Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectCardinality::One)]
public:
property Session^ Parent {
    Session^ get ();
    void set (Session^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)>]
member Parent : Session with get, set
function get Parent () : Session 
function set Parent (value : Session)

屬性值

型別:Microsoft.SqlServer.Management.XEvent.Session
The parent Session object for an event.

請參閱

參考

Event 類別

Microsoft.SqlServer.Management.XEvent 命名空間