Share via


CompactQuasiNewtonModel.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 that is at the specified variable index.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Overridable Sub SetProperty ( _
    propertyName As String, _
    vid As Integer, _
    value As Object _
)
public virtual void SetProperty(
    string propertyName,
    int vid,
    Object value
)
public:
virtual void SetProperty(
    String^ propertyName, 
    int vid, 
    Object^ value
)
abstract SetProperty : 
        propertyName:string * 
        vid:int * 
        value:Object -> unit 
override SetProperty : 
        propertyName:string * 
        vid:int * 
        value:Object -> unit 
public function SetProperty(
    propertyName : String, 
    vid : int, 
    value : Object
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

propertyName is a null reference (Nothing in Visual Basic).

ArgumentException

vid is not valid.

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

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace