TargetInfoCollection.Item Property (String)

Gets the TargetInfo object with the specified name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As TargetInfo 
    Get
'Usage
Dim instance As TargetInfoCollection 
Dim name As String 
Dim value As TargetInfo 

value = instance(name)
public TargetInfo this[
    string name
] { get; }
public:
virtual property TargetInfo^ default[String^ name] {
    TargetInfo^ get (String^ name) sealed;
}
abstract Item : TargetInfo 
override Item : TargetInfo
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • name
    Type: System.String
    A string value that specifies the name.

Property Value

Type: Microsoft.SqlServer.Management.XEvent.TargetInfo
The TargetInfo object with the specified name.

See Also

Reference

TargetInfoCollection Class

Item Overload

Microsoft.SqlServer.Management.XEvent Namespace