Revit 2025 API
Image |
Verify if File name is valid
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsValidFileName( string filePath )
Public Shared Function IsValidFileName ( filePath As String ) As Boolean
public: static bool IsValidFileName( String^ filePath )
static member IsValidFileName : filePath : string -> bool
Parameters
- filePath String
- File path to be tested for valid file name
Return Value
BooleanTrue if File name is valid; false otherwise

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
See Also