Class DefaultPropertyIndexValueFactory
Inheritance
System.Object
Namespace: Umbraco.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class DefaultPropertyIndexValueFactory : IPropertyIndexValueFactory
Methods
View SourceGetIndexValues(Property, String, String, Boolean)
Gets the index values for a property.
Declaration
public IEnumerable<KeyValuePair<string, IEnumerable<object>>> GetIndexValues(Property property, string culture, string segment, bool published)
Parameters
Type | Name | Description |
---|---|---|
Property | property | |
System.String | culture | |
System.String | segment | |
System.Boolean | published |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Collections.Generic.IEnumerable<System.Object>>> |
Remarks
Returns key-value pairs, where keys are indexed field names. By default, that would be the property alias, and there would be only one pair, but some implementations (see for instance the grid one) may return more than one pair, with different indexed field names.
And then, values are an enumerable of objects, because each indexed field can in turn have multiple values. By default, there would be only one object: the property value. But some implementations may return more than one value for a given field.