Метод Contains (Int32, Int32)
Determines whether an object with the specified ID value and language ID value exists in the message collection object.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Function Contains ( _
id As Integer, _
languageId As Integer _
) As Boolean
'Применение
Dim instance As MessageCollectionBase
Dim id As Integer
Dim languageId As Integer
Dim returnValue As Boolean
returnValue = instance.Contains(id, languageId)
public bool Contains(
int id,
int languageId
)
public:
bool Contains(
int id,
int languageId
)
member Contains :
id:int *
languageId:int -> bool
public function Contains(
id : int,
languageId : int
) : boolean
Параметры
- id
Тип System. . :: . .Int32
An Int32 value that specifies the ID value of the MessageCollectionBase object.
- languageId
Тип System. . :: . .Int32
Возвращаемое значение
Тип System. . :: . .Boolean
A Boolean value that specifies whether the object with the specified ID value exists in the MessageCollectionBase object.
If True, the MessageCollectionBase contains the specified object.
If False, the MessageCollectionBase does not contain the specified object.