共用方式為


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 命名空間