Share via


DacInstanceCollection Constructor (DacDomain, IComparer<String>)

Initializes a new instance of the DacPackageCollection class with the specified parent and IComparer interface.

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

Syntax

'Declaration
Public Sub New ( _
    parent As DacDomain, _
    customComparer As IComparer(Of String) _
)
'Usage
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>
)

Parameters

Remarks

The IComparer interface provides a custom filter when creating a new collection by comparing the given string with the DAC instance.