共用方式為


EventInfoCollection.Item 屬性 (String)

Gets the EventInfo object with the specified name.

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

語法

'宣告
Public ReadOnly Default Property Item ( _
    name As String _
) As EventInfo 
    Get
'用途
Dim instance As EventInfoCollection 
Dim name As String 
Dim value As EventInfo 

value = instance(name)
public EventInfo this[
    string name
] { get; }
public:
virtual property EventInfo^ default[String^ name] {
    EventInfo^ get (String^ name) sealed;
}
abstract Item : EventInfo 
override Item : EventInfo
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

屬性值

型別:Microsoft.SqlServer.Management.XEvent.EventInfo
The EventInfo object specified by the name parameter.

請參閱

參考

EventInfoCollection 類別

Item 多載

Microsoft.SqlServer.Management.XEvent 命名空間