StringPropertyTooLongException Constructor (String, Int32, Int32)
Initializes a new instance of the StringPropertyTooLongException class that has the specified property, maximum length of the string, and the current length of the string.
Namespace: Microsoft.SqlServer.Management.Dmf
Assembly: Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)
Syntax
public StringPropertyTooLongException(
string propertyName,
int maxLength,
int currentLength
)
public:
StringPropertyTooLongException(
String^ propertyName,
int maxLength,
int currentLength
)
new :
propertyName:string *
maxLength:int *
currentLength:int -> StringPropertyTooLongException
Public Sub New (
propertyName As String,
maxLength As Integer,
currentLength As Integer
)
Parameters
propertyName
Type: System.StringA String value that specifies the name of the property.
maxLength
Type: System.Int32An Int32 value that specifies the maximum length that is allowed for the string property.
currentLength
Type: System.Int32An Int32 value that specifies the current length of the string.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Examples
See Also
StringPropertyTooLongException Overload
StringPropertyTooLongException Class
Microsoft.SqlServer.Management.Dmf Namespace
Return to top