共用方式為


EventCollection.Item 屬性 (String)

Gets the XEvent object identified by the name parameter.

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

語法

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

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

參數

  • name
    型別:System.String
    The name of the XEvent object to find.

屬性值

型別:Microsoft.SqlServer.Management.XEvent.Event
Returns the XEvent object identified by the name parameter.

請參閱

參考

EventCollection 類別

Item 多載

Microsoft.SqlServer.Management.XEvent 命名空間