IAdmSearchResult
The IAdmSearchResult interface represents a search result entry.
Inheritance: IEnumerable
Methods
-
Method
-
Description
-
GetPropertyByName()
-
Returns a property by its name.
-
GetPropertyByIndex()
-
Returns a property by index.
-
Add()
-
Adds a property to the search result entry.
-
Remove()
-
Removes a property from the search result entry.
-
PutProperty()
-
Puts a property to the search result entry.
-
GetEnumerator()
-
Retrieves an enumerator object for this search result entry.
Properties
Details
GetPropertyByName()
Returns a property by its name. If the property is not found in the entry, the method throws the COMException exception with the E_ADS_PROPERTY_NOT_FOUND error code.
IAdmSearchResultProperty GetPropertyByName(String propertyName)
GetPropertyByIndex()
Returns a property by index. If there is no property at the specified index, the method throws the COMException exception with the E_ADS_PROPERTY_NOT_FOUND error code.
IAdmSearchResultProperty GetPropertyByIndex(Int32 propertyIndex)
Add()
Adds a property to the search result entry.
void Add(IAdmSearchResultProperty property)
Parameters
The property parameter specifies the property to be added.
Remove()
Removes a property from the search result entry. If the property is not found in the entry, the method throws the COMException exception with the E_ADS_PROPERTY_NOT_FOUND error code.
void Remove(String propertyName)
Parameters
The propertyName parameter specifies the name of the property to remove.
PutProperty()
Puts a property to the search result entry. If the property already exists in the search result, the method replaces it with the new one.
void Add(IAdmSearchResultProperty property)
Parameters
The property parameter specifies the property to put.
GetEnumerator()
Retrieves an enumerator object for this search result entry. The enumerator object implements the IEnumerator interface that can be used to enumerate properties in foreach loops.
IEnumerator GetEnumerator()
AdsPath
Gets or sets the ADS path of the directory object represented by this search result entry.
- Type:
- String
- Access:
- Read/Write
Count
Gets the number of properties in the entry.
- Type:
- Int32
- Access:
- Read-only
Requirements
Minimum required version: 2009.1