This document is archived and information here might be outdated.  Recommended version.


IImport3DFile.IsValidFile Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (3DAnalyst)  

IImport3DFile.IsValidFile Property

Indicates if this is a valid 3D Import File.

[Visual Basic .NET]
Public Function get_IsValidFile ( _
    ByVal FilePath As String _
) As Boolean
[C#]
public bool get_IsValidFile (
    string FilePath
);
[C++]
HRESULT get_IsValidFile(
  BSTR FilePath,
  VARIANT_BOOL* pValid
);
[C++]

Parameters FilePath [in] FilePath is a parameter of type BSTR pValid [out, retval] pValid is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Remarks

At ArcGIS 9.0, IsValidFile property only checks the import 3D model file name's extension, not the content of the file.  If it's one of *.3ds, *.flt, or *.wrl, then the property is true.  Otherwise, it's false.

See Also

IImport3DFile Interface