UploadFileSizeException Constructor (String, Guid, Int32)
Initializes a new instance of the UploadFileSizeException class with the specified error message and parameters.
Namespace: Microsoft.CommerceServer
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
token As Guid, _
fileSize As Integer _
)
'Usage
Dim message As String
Dim token As Guid
Dim fileSize As Integer
Dim instance As New UploadFileSizeException(message, _
token, fileSize)
public UploadFileSizeException(
string message,
Guid token,
int fileSize
)
public:
UploadFileSizeException(
String^ message,
Guid token,
int fileSize
)
public function UploadFileSizeException(
message : String,
token : Guid,
fileSize : int
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- token
Type: System..::.Guid
Upload token that caused the exception.
- fileSize
Type: System..::.Int32
Size of the file that caused the exception.
Remarks
This exception is thrown when a user tried to upload a file that is larger than the pre-configured limit; or when trying to import a token that was not completely uploaded yet.
Permissions
- 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.
See Also
Reference
UploadFileSizeException Members