FileTypes Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A collection of values of the type MsoFileType that determine which types of files are returned by the Execute(MsoSortBy, MsoSortOrder, Boolean) method of the FileSearch object.
public interface class FileTypes : Microsoft::Office::Core::_IMsoDispObj, System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000C036C-0000-0000-C000-000000000046")]
public interface FileTypes : Microsoft.Office.Core._IMsoDispObj, System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("000C036C-0000-0000-C000-000000000046")>]
type FileTypes = interface
interface _IMsoDispObj
interface IEnumerable
Public Interface FileTypes
Implements _IMsoDispObj, IEnumerable
- Attributes
- Implements
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(Int32) method. To determine the file type of each item in the collection, use the Item[Int32] method to return the msoFileType value.
Properties
Application |
Returns an Application object that represents the container application for the object. |
Count |
Returns an Integer indicating the number of items in the specified collection. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
Item[Int32] |
Returns a value that indicates which file type will be searched for by the Execute(MsoSortBy, MsoSortOrder, Boolean) method of the FileSearch object. |
Methods
Add(MsoFileType) |
Adds a new file type to a file search. |
GetEnumerator() | |
Remove(Int32) |
Removes the specified object from the collection. |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기