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.1.1.0 (2024.1.1)
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