This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IF > IFileNames2 Interface > IFileNames2.GetContainedExtensions Method (ArcObjects .NET 10.5 SDK) |
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
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.