Partager via


DacInstanceCollection.Contains Method ()

Indicates whether the collection contains the specified DAC instance.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'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

Parameters

  • name
    Type: String
    A String value that specifies the name of the DAC instance to search for.

Return Value

Type: 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.

See Also

Reference

DacInstanceCollection Class

Contains Overload

Microsoft.SqlServer.Management.Dac Namespace