Partager via


Méthode IMetadataGeneration.GetPackage

Retrieves a package by module identifier and name.

Espace de noms :  Microsoft.SqlServer.XEvent
Assembly :  Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)

Syntaxe

'Déclaration
Function GetPackage ( _
    moduleId As Guid, _
    name As String _
) As IPackage
'Utilisation
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

Paramètres

Valeur de retour

Type : Microsoft.SqlServer.XEvent.IPackage
An IPackage with the name specified, or nullune référence Null (Nothing dans Visual Basic) if the package cannot be found.

Voir aussi

Référence

IMetadataGeneration Interface

Espace de noms Microsoft.SqlServer.XEvent