Share via


CompactQuasiNewtonModel.GetProperty Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the value of a property that is at the specified index.

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

Syntax

'Declaration
Public Overridable Function GetProperty ( _
    propertyName As String, _
    vid As Integer _
) As Object
public virtual Object GetProperty(
    string propertyName,
    int vid
)
public:
virtual Object^ GetProperty(
    String^ propertyName, 
    int vid
)
abstract GetProperty : 
        propertyName:string * 
        vid:int -> Object 
override GetProperty : 
        propertyName:string * 
        vid:int -> Object 
public function GetProperty(
    propertyName : String, 
    vid : int
) : Object

Parameters

Return Value

Type: System.Object
The value of the property that is at the specified index.

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