Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the maximum length, in characters, of data items at the specified index.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public MustOverride Function GetItemMaxLength ( _
index As Integer _
) As Integer
public abstract int GetItemMaxLength(
int index
)
public:
virtual int GetItemMaxLength(
int index
) abstract
abstract GetItemMaxLength :
index:int -> int
public abstract function GetItemMaxLength(
index : int
) : int
Parameters
- index
Type: System.Int32
The index of the data item being examined for length.
Return Value
Type: System.Int32
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.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The index parameter is invalid. |
.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.