Share via


FileTypes Interface 

A collection of values of the type MsoFileType that determine which types of files are returned by the Execute method of the FileSearch object.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Public Class ileTypesImplementation
    Implements FileTypes
End Class
Dim ileTypesImplementation1 As New ileTypesImplementation()

Syntax

Public Interface FileTypes
    Inherits _IMsoDispObj, IEnumerable
public interface FileTypes : _IMsoDispObj, IEnumerable
public interface class FileTypes : public _IMsoDispObj, IEnumerable
public interface FileTypes implements _IMsoDispObj, IEnumerable
public interface FileTypes implements _IMsoDispObj, , IEnumerable

Remarks

Use the FileTypes property with the FileSearch object to return a FileTypes collection.

Note

The FileType property of the FileSearch object clears the FileTypes collection and sets the first item in the collection to the file type defined by the FileType property.

There is only one FileTypes collection for all searches, so it's important to clear the FileTypes collection before executing a search unless you wish to search for file types from previous searches. The easiest way to clear the collection is to set the FileType property to the first file type for which you want to search. You can also remove individual types using the Remove method. To determine the file type of each item in the collection, use the Item method to return the msoFileType value.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

FileTypes Members