Class MemberValueSetBuilder
Provides functionality to build value sets for member entities, enabling them to be indexed by Examine.
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MemberValueSetBuilder : BaseValueSetBuilder<IMember>, IValueSetBuilder<IMember>
Remarks
Values of properties marked as sensitive on the member type are not included, as an index has no means of restricting them to users with access to sensitive data.
Constructors
View SourceMemberValueSetBuilder(PropertyEditorCollection, IContentTypeService)
Initializes a new instance of the MemberValueSetBuilder class with the specified property editors and content type service.
Declaration
[Obsolete("Please use the constructor with all parameters. Scheduled for removal in Umbraco 20.")]
public MemberValueSetBuilder(PropertyEditorCollection propertyEditors, IContentTypeService contentTypeService)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEditorCollection | propertyEditors | A PropertyEditorCollection representing the collection of property editors to use. |
| IContentTypeService | contentTypeService | An IContentTypeService used to access content type information. |
MemberValueSetBuilder(PropertyEditorCollection, IContentTypeService, IMemberTypeService)
Initializes a new instance of the MemberValueSetBuilder class.
Declaration
public MemberValueSetBuilder(PropertyEditorCollection propertyEditors, IContentTypeService contentTypeService, IMemberTypeService memberTypeService)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEditorCollection | propertyEditors | A PropertyEditorCollection representing the collection of property editors to use. |
| IContentTypeService | contentTypeService | An IContentTypeService used to access content type information. |
| IMemberTypeService | memberTypeService | An IMemberTypeService used to determine which member properties are sensitive. |
Methods
View SourceGetValueSets(params IMember[])
Creates a collection of Examine.ValueSet to be indexed based on a collection of IMember.
Declaration
public override IEnumerable<ValueSet> GetValueSets(params IMember[] members)
Parameters
| Type | Name | Description |
|---|---|---|
| IMember[] | members |
Returns
| Type | Description |
|---|---|
| IEnumerable<ValueSet> |