Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies that the specified file size remains within the limits set by the MinAllowedFileSize and MaxAllowedFileSize properties.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function ValidateFileSize ( _
Size As Integer _
) As Boolean
'Usage
Dim Size As Integer
Dim returnValue As Boolean
returnValue = SPDocumentConverter.ValidateFileSize(Size)
public static bool ValidateFileSize(
int Size
)
Parameters
Size
Type: System.Int32A 32-bit integer that specifies the file size in kilobytes.
Return Value
Type: System.Boolean
true if the file size remains within the limits set by the MinAllowedFileSize and MaxAllowedFileSize properties; otherwise, false.