RowVariableModel.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.Services
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
- propertyName
Type: System.String
The name of the property to return. For additional information, see SolverProperties.
- vid
Type: System.Int32
The variable index.
Return Value
Type: System.Object
The value of the property 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
- 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.