NelderMeadSolver.SetProperty Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets a property for the specified index.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub SetProperty ( _
propertyName As String, _
vid As Integer, _
value As Object _
)
public void SetProperty(
string propertyName,
int vid,
Object value
)
public:
virtual void SetProperty(
String^ propertyName,
int vid,
Object^ value
) sealed
abstract SetProperty :
propertyName:string *
vid:int *
value:Object -> unit
override SetProperty :
propertyName:string *
vid:int *
value:Object -> unit
public final function SetProperty(
propertyName : String,
vid : int,
value : Object
)
Parameters
- propertyName
Type: System.String
The name of the property to set, see SolverProperties.
- vid
Type: System.Int32
The variable index.
- value
Type: System.Object
The value.
Implements
ISolverProperties.SetProperty(String, Int32, Object)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The property name is null. |
ArgumentException | The variable index is invalid. |
InvalidSolverPropertyException | The property is not supported. The Reason property indicates why the property is not supported. |
Remarks
This method is typically called by Solver Foundation Services in response to event handler code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.