共用方式為


PackageCollection.Item 屬性 (Guid)

Gets the package in the collection with the specified GUID.

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

語法

'宣告
Public ReadOnly Default Property Item ( _
    packageID As Guid _
) As Package 
    Get
'用途
Dim instance As PackageCollection 
Dim packageID As Guid 
Dim value As Package 

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

參數

  • packageID
    型別:System.Guid
    The GUID of the package.

屬性值

型別:Microsoft.SqlServer.Management.XEvent.Package
The package with the specified GUID.

請參閱

參考

PackageCollection 類別

Item 多載

Microsoft.SqlServer.Management.XEvent 命名空間