C# Class Rock.UniversalSearch.IndexModels.IndexModelBase

Base Index Model
Inheritance: System.Dynamic.DynamicObject, Lava.ILiquidizable
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Contains ( object>.KeyValuePair item, bool includeInstanceProperties = false ) : bool

Determines whether [contains] [the specified item].

ContainsKey ( object key ) : bool

Determines whether the specified key contains key.

FormatSearchResult ( Person person, object>.Dictionary displayOptions = null ) : FormattedSearchResult

Formats the search result.

GetDocumentUrl ( object>.Dictionary displayOptions = null ) : string

Gets the document URL.

GetDynamicMemberNames ( ) : IEnumerable

Returns the enumeration of all dynamic member names.

GetProperties ( bool includeInstanceProperties = false ) : object>>.IEnumerable

Gets the properties.

IndexModelBase ( ) : System

Initializes a new instance of the IndexModelBase class.

ToLiquid ( ) : object

Returns liquid for the object

TryGetMember ( GetMemberBinder binder, object &result ) : bool

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

TrySetMember ( SetMemberBinder binder, object value ) : bool

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.

this ( object key ) : object

Gets the System.Object with the specified key.

this ( string key ) : object

Gets or sets the System.Object with the specified key.

Méthodes protégées

Méthode Description
AddIndexableAttributes ( IndexModelBase indexModel, IHasAttributes sourceModel ) : void

Adds the indexable attributes.

GetProperty ( object instance, string name, object &result ) : bool

Gets the property.

SetProperty ( object instance, string name, object value ) : bool

Sets the property.

Method Details

AddIndexableAttributes() protected static méthode

Adds the indexable attributes.
protected static AddIndexableAttributes ( IndexModelBase indexModel, IHasAttributes sourceModel ) : void
indexModel IndexModelBase The index model.
sourceModel IHasAttributes The source model.
Résultat void

Contains() public méthode

Determines whether [contains] [the specified item].
public Contains ( object>.KeyValuePair item, bool includeInstanceProperties = false ) : bool
item object>.KeyValuePair The item.
includeInstanceProperties bool if set to true [include instance properties].
Résultat bool

ContainsKey() public méthode

Determines whether the specified key contains key.
public ContainsKey ( object key ) : bool
key object The key.
Résultat bool

FormatSearchResult() public méthode

Formats the search result.
public FormatSearchResult ( Person person, object>.Dictionary displayOptions = null ) : FormattedSearchResult
person Person The person.
displayOptions object>.Dictionary The display options.
Résultat FormattedSearchResult

GetDocumentUrl() public méthode

Gets the document URL.
public GetDocumentUrl ( object>.Dictionary displayOptions = null ) : string
displayOptions object>.Dictionary
Résultat string

GetDynamicMemberNames() public méthode

Returns the enumeration of all dynamic member names.
public GetDynamicMemberNames ( ) : IEnumerable
Résultat IEnumerable

GetProperties() public méthode

Gets the properties.
public GetProperties ( bool includeInstanceProperties = false ) : object>>.IEnumerable
includeInstanceProperties bool if set to true [include instance properties].
Résultat object>>.IEnumerable

GetProperty() protected méthode

Gets the property.
protected GetProperty ( object instance, string name, object &result ) : bool
instance object The instance.
name string The name.
result object The result.
Résultat bool

IndexModelBase() public méthode

Initializes a new instance of the IndexModelBase class.
public IndexModelBase ( ) : System
Résultat System

SetProperty() protected méthode

Sets the property.
protected SetProperty ( object instance, string name, object value ) : bool
instance object The instance.
name string The name.
value object The value.
Résultat bool

ToLiquid() public méthode

Returns liquid for the object
public ToLiquid ( ) : object
Résultat object

TryGetMember() public méthode

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
result object The result of the get operation. For example, if the method is called for a property, you can assign the property value to .
Résultat bool

TrySetMember() public méthode

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
value object The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, the is "Test".
Résultat bool

this() public méthode

Gets the System.Object with the specified key.
public this ( object key ) : object
key object The key.
Résultat object

this() public méthode

Gets or sets the System.Object with the specified key.
public this ( string key ) : object
key string The key.
Résultat object