共用方式為


EventInfo.Parent 屬性

Gets the parent of an EventInfo object.

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

語法

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

value = instance.Parent

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

屬性值

型別:Microsoft.SqlServer.Management.XEvent.Package
A Package object that represents the parent.

請參閱

參考

EventInfo 類別

Microsoft.SqlServer.Management.XEvent 命名空間