IMetadataGeneration.GetPackage Method
Retrieves a package by module identifier and name.
Namespace: Microsoft.SqlServer.XEvent
Assembly: Microsoft.SqlServer.XEvent.Linq (in Microsoft.SqlServer.XEvent.Linq.dll)
Syntax
'Declaration
Function GetPackage ( _
moduleId As Guid, _
name As String _
) As IPackage
'Usage
Dim instance As IMetadataGeneration
Dim moduleId As Guid
Dim name As String
Dim returnValue As IPackage
returnValue = instance.GetPackage(moduleId, _
name)
IPackage GetPackage(
Guid moduleId,
string name
)
IPackage^ GetPackage(
Guid moduleId,
String^ name
)
abstract GetPackage :
moduleId:Guid *
name:string -> IPackage
function GetPackage(
moduleId : Guid,
name : String
) : IPackage
Parameters
- moduleId
Type: System.Guid
The module identifier.
- name
Type: System.String
The specified name.
Return Value
Type: Microsoft.SqlServer.XEvent.IPackage
An IPackage with the name specified, or nulla null reference (Nothing in Visual Basic) if the package cannot be found.