DataReader.GetItemMaxLength(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the maximum length, in characters, of data items at the specified index.
public:
virtual int GetItemMaxLength(int index);
public virtual int GetItemMaxLength (int index);
abstract member GetItemMaxLength : int -> int
override this.GetItemMaxLength : int -> int
Public Overridable Function GetItemMaxLength (index As Integer) As Integer
Parameters
- index
- Int32
The index of the data item being examined for length.
Returns
The maximum length, in number of characters, of the data item at the specified index; or, returns -1 if the maximum length is unavailable or is not sensible.