Session.Targets Property

Gets the TargetCollection.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Target))> _
Public ReadOnly Property Targets As TargetCollection 
    Get
'Usage
Dim instance As Session 
Dim value As TargetCollection 

value = instance.Targets
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Target))]
public TargetCollection Targets { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Target))]
public:
property TargetCollection^ Targets {
    TargetCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Target))>]
member Targets : TargetCollection
function get Targets () : TargetCollection

Property Value

Type: Microsoft.SqlServer.Management.XEvent.TargetCollection
A collection of Target objects.

See Also

Reference

Session Class

Microsoft.SqlServer.Management.XEvent Namespace