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.