SbFileHelperIsAccessible Method (String, SbFileHelperFileAccess) |
Returns true if a file is accessible
Namespace: OIV.Inventor.HelpersAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public static bool IsAccessible(
string filename,
SbFileHelperFileAccess mode
)
Public Shared Function IsAccessible (
filename As String,
mode As SbFileHelperFileAccess
) As Boolean
public:
static bool IsAccessible(
String^ filename,
SbFileHelperFileAccess mode
)
static member IsAccessible :
filename : string *
mode : SbFileHelperFileAccess -> bool
Parameters
- filename
- Type: SystemString
The file to test.
- mode
- Type: OIV.Inventor.HelpersSbFileHelperFileAccess
The file access mode
Return Value
Type:
Booleantrue if the file is accessible, false otherwise.
Remarks The default value of the mode parameter is READ_ONLY.
Note that this method cannot be used to test if it is possible to create a file for writing. It only works on existing files.
See Also