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


IFileNames2.GetContainedExtensions Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IF > IFileNames2 Interface > IFileNames2.GetContainedExtensions Method
ArcGIS Developer Help

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(
void
);

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