共用方式為


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

參數

傳回值

型別: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.