Share via


StringPropertyTooLongException.MaxLength Property

Gets the maximum length that is allowed for the string property.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public ReadOnly Property MaxLength As Integer 
    Get
'Usage
Dim instance As StringPropertyTooLongException 
Dim value As Integer 

value = instance.MaxLength
public int MaxLength { get; }
public:
property int MaxLength {
    int get ();
}
member MaxLength : int
function get MaxLength () : int

Property Value

Type: System.Int32
An Int32 value that specifies the maximum length that is allowed for the string property.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Examples

Handling SMO Exceptions

See Also

Reference

StringPropertyTooLongException Class

Microsoft.SqlServer.Management.Dmf Namespace