Propriété PublishedEvent.FieldList.Item (String)
Gets a field by name from the fields collection.
Espace de noms : Microsoft.SqlServer.XEvent.Linq
Assembly : Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)
Syntaxe
'Déclaration
Public ReadOnly Default Property Item ( _
fieldName As String _
) As PublishedEventField
Get
'Utilisation
Dim instance As PublishedEvent.FieldList
Dim fieldName As String
Dim value As PublishedEventField
value = instance(fieldName)
public PublishedEventField this[
string fieldName
] { get; }
public:
property PublishedEventField^ default[String^ fieldName] {
PublishedEventField^ get (String^ fieldName);
}
member Item : PublishedEventField
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- fieldName
Type : System.String
The name of the field to retrieve.
Valeur de propriété
Type : Microsoft.SqlServer.XEvent.Linq.PublishedEventField
A field by name from the fields collection.