Condividi tramite


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