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


ILasDatasetEdit.AddFolder Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IL > ILasDatasetEdit Interface > ILasDatasetEdit.AddFolder Method
ArcGIS Developer Help

ILasDatasetEdit.AddFolder Method

Adds all the files in the specified a folder, and potentially subfolders, to the dataset.

[Visual Basic .NET]
Public Sub AddFolder ( _
    ByVal folderName As String, _
    ByVal fileExtension As String, _
    ByVal bRecursive As Boolean, _
    ByRef ppBadFiles As IStringArray _
)
[C#]
public void AddFolder (
    string folderName,
    string fileExtension,
    bool bRecursive,
    ref IStringArray ppBadFiles
);
[C++]
HRESULT AddFolder(
  BSTR folderName,
  BSTR fileExtension,
  VARIANT_BOOL bRecursive,
  IStringArray** ppBadFiles
);
[C++]
Parameters
folderName [in]

folderName is a parameter of type BSTR fileExtension [in]
fileExtension is a parameter of type BSTR bRecursive [in]
bRecursive is a parameter of type bool ppBadFiles [out]
ppBadFiles is a parameter of type IStringArray**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Use this method to add multiple LAS files at once.

folderName is the full path of the folder.

fileExtension is used to add files of a certain type. Use the extension �las� to add LAS files. This is case-insensitive.

bRecursive, if set to True, would also include LAS files in sub folders.

ppBadFiles is a string array that is populated with the names of the las files that could not be added to the las dataset. That includes files that are corrupt or invalid.

See Also

ILasDatasetEdit Interface