StringPropertyTooLongException 构造函数 (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.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
Public Sub New ( _
    propertyName As String, _
    maxLength As Integer, _
    currentLength As Integer _
)
用法
Dim propertyName As String
Dim maxLength As Integer
Dim currentLength As Integer

Dim instance As New StringPropertyTooLongException(propertyName, _
    maxLength, currentLength)
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 function StringPropertyTooLongException(
    propertyName : String, 
    maxLength : int, 
    currentLength : int
)

参数

  • maxLength
    类型:System. . :: . .Int32
    An Int32 value that specifies the maximum length that is allowed for the string property.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。