SolverRegistrationCollection Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents the plug-in solver registration information.
Inheritance Hierarchy
System.Object
Microsoft.SolverFoundation.Services.SolverRegistrationCollection
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Class SolverRegistrationCollection _
Implements ICollection(Of SolverRegistration), IEnumerable(Of SolverRegistration), _
IEnumerable
public class SolverRegistrationCollection : ICollection<SolverRegistration>,
IEnumerable<SolverRegistration>, IEnumerable
public ref class SolverRegistrationCollection : ICollection<SolverRegistration^>,
IEnumerable<SolverRegistration^>, IEnumerable
type SolverRegistrationCollection =
class
interface ICollection<SolverRegistration>
interface IEnumerable<SolverRegistration>
interface IEnumerable
end
public class SolverRegistrationCollection implements ICollection<SolverRegistration>, IEnumerable<SolverRegistration>, IEnumerable
The SolverRegistrationCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | The number of registration entries in the collection. | |
IsReadOnly | Returns a value that indicates whether the collection is read only. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds a new solver registration entry to the collection. | |
Contains | Determines if a registration entry exists. | |
CopyTo | Copies registration entries to an Array. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDirectiveType | Return the Type of the directive associated with a registration entry. | |
GetEnumerator | Gets an enumerator for the collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection<SolverRegistration>.Clear | Clears the collection. | |
IEnumerable.GetEnumerator | Gets an enumerator for the collection. | |
ICollection<SolverRegistration>.Remove | Removes the specified item from the collection. |
Top
Remarks
SolverRegistrationCollection stores information about registered third-party solvers. This information is accessed using the SolverContext.RegisteredSolvers property. A registration entry contains information such as the name of the plug-in assembly and the solver capability and interface it supports. This information is stored in the SolverRegistration class. A single plug-in solver may have multiple SolverRegistration entries, one for each capability supported by the solver. Entries are added to the collection automatically when a configuration file is associated with the application, or by calling the Add method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.