SOLIDWORKS PDM Professional API Help Send Feedback
GetLocalFileSize2 Method (IEdmFile9)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmFile9 Interface : GetLocalFileSize2 Method (IEdmFile9)


poPathOrFolderID
ID of the folder, a full file path, or a folder path (see Remarks)
Gets the size of a local copy of this file.

Syntax

Visual Basic 
Function GetLocalFileSize2( _
   ByRef poPathOrFolderID As System.Object _
) As System.Long
C# 
System.long GetLocalFileSize2( 
   ref System.object poPathOrFolderID
)
C++/CLI 
System.int64 GetLocalFileSize2( 
&   System.Object^% poPathOrFolderID
) 

Parameters

poPathOrFolderID
ID of the folder, a full file path, or a folder path (see Remarks)

Return Value

Size in bytes; -1 if the local file is missing

Example

Remarks

If poPathOrFolderID is a folder path, it must be terminated by a backslash ('\').

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: The local copy of the file is missing.
 

See Also

Availability

SOLIDWORKS PDM Professional 2015