Click or drag to resize
SbFileHelperIsAccessible Method (String, SbFileHelperFileAccess)

Returns true if a file is accessible

Namespace: OIV.Inventor.Helpers
Assembly: 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
)

Parameters

filename
Type: SystemString

The file to test.

mode
Type: OIV.Inventor.HelpersSbFileHelperFileAccess

The file access mode

Return Value

Type: Boolean

true 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