ArcObjects Library Reference (GeoDatabaseExtensions)  

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 VARIANT_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