Méthode Contains (String)
Indicates whether the collection contains the specified DAC instance.
Espace de noms : Microsoft.SqlServer.Management.Dac
Assembly : Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)
Syntaxe
'Déclaration
Public Function Contains ( _
name As String _
) As Boolean
'Utilisation
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
Paramètres
- name
Type : System. . :: . .String
A String value that specifies the name of the DAC instance to search for.
Valeur de retour
Type : 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.