Retrieves a package by module identifier and name.
命名空間: Microsoft.SqlServer.XEvent
組件: Microsoft.SqlServer.XEvent.Linq (在 Microsoft.SqlServer.XEvent.Linq.dll 中)
語法
'宣告
Function GetPackage ( _
moduleId As Guid, _
name As String _
) As IPackage
'用途
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
參數
- moduleId
型別:System.Guid
The module identifier.
- name
型別:System.String
The specified name.
傳回值
型別:Microsoft.SqlServer.XEvent.IPackage
An IPackage with the name specified, or nullnull 參考 (在 Visual Basic 中為 Nothing) if the package cannot be found.