LinearModel.SetProperty Method

Sets a property at a specified index.

Namespace:  Microsoft.SolverFoundation.Services
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

  • propertyName
    Type: System.String
    The name of the property to get.

Implements

ISolverProperties.SetProperty(String, Int32, Object)

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

vid is invalid.

.NET Framework Security

See Also

Reference

LinearModel Class

LinearModel Members

Microsoft.SolverFoundation.Services Namespace