AttributeState Enumeration

Top  Previous  Next

Provides the fields that represent the search state of attributes.

 

[Visual Basic]

 

Public Enum AttributeState As Integer

 

 

Remarks

 

AttributeState enumeration is used by the FileAttributes class to indicate the search criteria for a given attribute.

 

Members

 

Either

Attribute can be either On or Off.

Off

Attribute must be Off.

On

Attribute must be On.

 

 

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