SPMobileUtility.GetImageSizeFromUri method
Gets the size in Kbytes of the image file at the specified path.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetImageSizeFromUri ( _
imagePath As String _
) As Integer
'Usage
Dim imagePath As String
Dim returnValue As Integer
returnValue = SPMobileUtility.GetImageSizeFromUri(imagePath)
public static int GetImageSizeFromUri(
string imagePath
)
Parameters
imagePath
Type: System.StringThe path to the image file.
Return value
Type: System.Int32
The size of the image in Kbytes.