ManagedInstanceCollection Constructor (Utility, IComparer(String))
Crea una nueva instancia de ManagedInstanceCollection con el objeto Utility primario especificado y el objeto comparador de objetos personalizado.
Espacio de nombres: Microsoft.SqlServer.Management.Utility
Ensamblado: Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Sintaxis
'Declaración
Public Sub New ( _
parent As Utility, _
customComparer As IComparer(Of String) _
)
'Uso
Dim parent As Utility
Dim customComparer As IComparer(Of String)
Dim instance As New ManagedInstanceCollection(parent, _
customComparer)
public ManagedInstanceCollection(
Utility parent,
IComparer<string> customComparer
)
public:
ManagedInstanceCollection(
Utility^ parent,
IComparer<String^>^ customComparer
)
new :
parent:Utility *
customComparer:IComparer<string> -> ManagedInstanceCollection
public function ManagedInstanceCollection(
parent : Utility,
customComparer : IComparer<String>
)
Parámetros
- parent
Tipo: Microsoft.SqlServer.Management.Utility. . :: . .Utility
Especifica el objeto Utility que es primario del objeto ManagedInstanceCollection.
- customComparer
Tipo: System.Collections.Generic. . :: . .IComparer< (Of < ( <'String> ) > ) >
Contiene un objeto que implementa la interfaz IComparer<(Of <(<'T>)>)> que se usa para comparar instancias administradas dentro de la colección.