FileAttributes Class

Top  Previous  Next

For a list of all members of this type, see FileAttributes Members.

 

Description

 

Represents attribute criteria used for file searching.

 

 

Thread Safety

 

This class is STA based and therefore safe for multithreaded access as long as the creating process continues to process its message loop.

 

Remarks

 

This class controls search criteria regarding the attributes of files. The value of each attribute criteria is defined by the AttributeState Enumeration.

 

If no attribute searching is required then the Clear method should be used to clear all attributes (the default state).

 

Example

 

[Visual Basic]

 

 

 engineSearch = New SearchEngineClass

 

 engineSearch.SearchCriteria.FileName         = "*.txt"

 engineSearch.SearchCriteria.ContainingText   = "search"

 engineSearch.SearchCriteria.LookIn           = "c:\search folder"

 

 ' To specify that no ReadOnly files should be found turn the attribute off.

 

 engineSearch.SearchCriteria.FileAttributes.Clear()

 engineSearch.SearchCriteria.FileAttributes.ReadOnly = AttributeState.Off

 

 Dim listResult As SearchResultItemList = engineSearch.Start( False )

 

 


Copyright © 2003-2013 Mythicsoft Ltd. All rights reserved.
SDK help file version: 7.0.2