Share via


PackageCollection.Item Property (Guid, String)

Gets the package in the collection by module ID and name.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    moduleID As Guid, _
    name As String _
) As Package 
    Get
'Usage
Dim instance As PackageCollection 
Dim moduleID As Guid 
Dim name As String 
Dim value As Package 

value = instance(moduleID, name)
public Package this[
    Guid moduleID,
    string name
] { get; }
public:
property Package^ default[Guid moduleID, String^ name] {
    Package^ get (Guid moduleID, String^ name);
}
member Item : Package
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • moduleID
    Type: System.Guid
    The module ID of the package.

Property Value

Type: Microsoft.SqlServer.Management.XEvent.Package
The package with the specified module ID and name.

See Also

Reference

PackageCollection Class

Item Overload

Microsoft.SqlServer.Management.XEvent Namespace