Table of Contents

Class ObjectSelectorComponentAttribute

Namespace
Kentico.Xperience.Admin.Base.FormAnnotations
Assembly
Kentico.Xperience.Admin.Base.Shared.dll

Indicates that the Object selector form component will be used for editing of this property value in the administration interface.

public sealed class ObjectSelectorComponentAttribute : BaseObjectSelectorComponentAttribute
Inheritance
object
Attribute
ObjectSelectorComponentAttribute
Inherited Members
Extension Methods

Remarks

The underlying property must be of the type 'System.Collections.Generic.IEnumerable<T>'.

Constructors

ObjectSelectorComponentAttribute(string)

Creates an instance of ObjectSelectorComponentAttribute.

public ObjectSelectorComponentAttribute(string objectType)

Parameters

objectType string

Defines which objects will be displayed in the selector.

Properties

IdentifyObjectByGuid

Indicates whether the Object selector uses the object's GUID column value to identify the object. If set to false the object's code name column value is used. Defaults to false.

public bool IdentifyObjectByGuid { get; set; }

Property Value

bool

Remarks

It's recommended to have it set to false, i.e. identify objects by their code names if a performance is a concern. The reason is that most system object types incorporate provider-level cache by the object's code name, not its GUID.