PackageCollection.Contains 方法 (Guid, String)

Determines whether the collection contains the package identified by the module ID and name.

命名空间:  Microsoft.SqlServer.Management.XEvent
程序集:  Microsoft.SqlServer.Management.XEvent(在 Microsoft.SqlServer.Management.XEvent.dll 中)

语法

声明
Public Function Contains ( _
    moduleID As Guid, _
    name As String _
) As Boolean
用法
Dim instance As PackageCollection 
Dim moduleID As Guid 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.Contains(moduleID, _
    name)
public bool Contains(
    Guid moduleID,
    string name
)
public:
bool Contains(
    Guid moduleID, 
    String^ name
)
member Contains : 
        moduleID:Guid * 
        name:string -> bool
public function Contains(
    moduleID : Guid, 
    name : String
) : boolean

参数

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

返回值

类型:System.Boolean
true if the collection contains the package; otherwise, false.

请参阅

参考

PackageCollection 类

Contains 重载

Microsoft.SqlServer.Management.XEvent 命名空间