DacInstanceCollection 建構函式 (DacDomain, IComparer(String))
Initializes a new instance of the DacPackageCollection class with the specified parent and IComparer interface.
命名空間: Microsoft.SqlServer.Management.Dac
組件: Microsoft.SqlServer.Management.Dac (在 Microsoft.SqlServer.Management.Dac.dll 中)
語法
'宣告
Public Sub New ( _
parent As DacDomain, _
customComparer As IComparer(Of String) _
)
'用途
Dim parent As DacDomain
Dim customComparer As IComparer(Of String)
Dim instance As New DacInstanceCollection(parent, _
customComparer)
public DacInstanceCollection(
DacDomain parent,
IComparer<string> customComparer
)
public:
DacInstanceCollection(
DacDomain^ parent,
IComparer<String^>^ customComparer
)
new :
parent:DacDomain *
customComparer:IComparer<string> -> DacInstanceCollection
public function DacInstanceCollection(
parent : DacDomain,
customComparer : IComparer<String>
)
參數
- parent
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacDomain
A DacDomain object that specifies the instance of the Database Engine that contains the DAC instances.
- customComparer
型別:System.Collections.Generic. . :: . .IComparer< (Of < ( <'String> ) > ) >
A [T:System.Collections.Generic.IComparer<System.String>] object that provides the filter.
備註
The IComparer interface provides a custom filter when creating a new collection by comparing the given string with the DAC instance.