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


IFileNames2.GetContainedExtensions Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IFileNames2.GetContainedExtensions Method

Obtains a delimited set of extensions contained within the collection.

[Visual Basic .NET]
Public Function GetContainedExtensions ( _
) As String
[C#]
public string GetContainedExtensions (
);
[C++]
HRESULT GetContainedExtensions(
  BSTR* extSet
);
[C++]

Parameters extSet [out, retval] extSet is a parameter of type BSTR

Product Availability

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

Description

The GetContainedExtensions method returns a delimited string containing the file name extensions within the array. For example, "txt|shp".

If the array contains a file name which is a directory, "<dir>" is returned. For example, "txt|<dir>|shp". Use the IFileNames::IsDirectory method to determine if a file name is a directory or a file.

See Also

IFileNames2 Interface