Initializes the field with the supplied value.
Namespace: Lucene.Net.DocumentsCopyC#
int
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public NumericField SetIntValue( int value_Renamed ) |
Visual Basic |
---|
Public Function SetIntValue ( _ value_Renamed As Integer _ ) As NumericField |
Visual C++ |
---|
public: NumericField^ SetIntValue( int value_Renamed ) |
Parameters
- value_Renamed
- Type: System..::..Int32
[Missing <param name="value_Renamed"/> documentation for "M:Lucene.Net.Documents.NumericField.SetIntValue(System.Int32)"]
Return Value
this instance, because of this you can use it the following way:CopyC#
document.add(new NumericField(name, precisionStep).setIntValue(value))