Метод 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