Share via


SPDocumentConverter.ValidateFileSize method

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)

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.Int32

    A 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.

See also

Reference

SPDocumentConverter class

SPDocumentConverter members

Microsoft.SharePoint.Administration namespace