Contains Método (String)
Indicates whether the collection contains the specified DAC instance.
Espacio de nombres: Microsoft.SqlServer.Management.Dac
Ensamblado: Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)
Sintaxis
'Declaración
Public Function Contains ( _
name As String _
) As Boolean
'Uso
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
Parámetros
- name
Tipo: System. . :: . .String
A String value that specifies the name of the DAC instance to search for.
Valor devuelto
Tipo: 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.