Xceed .NET Libraries Documentation
InvalidLengthException Constructor(String,Int32,Int32)


Xceed.SSH.Core Assembly > Xceed.SSH.Core Namespace > InvalidLengthException Class > InvalidLengthException Constructor : InvalidLengthException Constructor(String,Int32,Int32)
A string representing the exception's message text.
A value representing the maximum expected size.
A value representing the actual size of the string.
Initializes a new instance of the InvalidLengthException class, specifying the exception's message text, the maximum expected size and the actual size of the string.
Syntax
'Declaration
 
Public Function New( _
   ByVal message As String, _
   ByVal maximumExpectedSize As Integer, _
   ByVal actualSize As Integer _
)
'Usage
 
Dim message As String
Dim maximumExpectedSize As Integer
Dim actualSize As Integer
 
Dim instance As New InvalidLengthException(message, maximumExpectedSize, actualSize)
public InvalidLengthException( 
   string message,
   int maximumExpectedSize,
   int actualSize
)

Parameters

message
A string representing the exception's message text.
maximumExpectedSize
A value representing the maximum expected size.
actualSize
A value representing the actual size of the string.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

InvalidLengthException Class
InvalidLengthException Members
Overload List