Метод Contains (String)
Indicates whether the collection contains the specified DAC instance.
Пространство имен: Microsoft.SqlServer.Management.Dac
Сборка: Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)
Синтаксис
'Декларация
Public Function Contains ( _
name As String _
) As Boolean
'Применение
Dim instance As DacInstanceCollection
Dim name As String
Dim returnValue As Boolean
returnValue = instance.Contains(name)
public bool Contains(
string name
)
public:
bool Contains(
String^ name
)
member Contains :
name:string -> bool
public function Contains(
name : String
) : boolean
Параметры
- name
Тип: System. . :: . .String
A String value that specifies the name of the DAC instance to search for.
Возвращаемое значение
Тип: System. . :: . .Boolean
A Boolean value that indicates whether a DAC instance with the specified name exists in the collection. Returns True if there is a DAC instance with the specified name. Otherwise, returns False.