Gets a field by name from the fields collection.
命名空間: Microsoft.SqlServer.XEvent.Linq
組件: Microsoft.SqlServer.XEvent.Linq (在 Microsoft.SqlServer.XEvent.Linq.dll 中)
語法
'宣告
Public ReadOnly Default Property Item ( _
fieldName As String _
) As PublishedEventField
Get
'用途
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 支援索引屬性的使用,但不支援新屬性的宣告。
參數
- fieldName
型別:System.String
The name of the field to retrieve.
屬性值
型別:Microsoft.SqlServer.XEvent.Linq.PublishedEventField
A field by name from the fields collection.