HostUtils.FileNameEndsWithRhinoExtension Method

HostUtilsFileNameEndsWithRhinoExtension Method

Strip file extension from file name and check to see if it is a valid Rhino file extension.

Namespace:  Rhino.Runtime
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static bool FileNameEndsWithRhinoExtension(
	string fileName
)
Public Shared Function FileNameEndsWithRhinoExtension ( 
	fileName As String
) As Boolean

Parameters

fileName
Type: SystemString
File name to check.

Return Value

Type: Boolean
Returns true if the file name has an extension like 3dm.
Version Information

Rhino for Windows

Supported in: 6.14
See Also