Class TemplateDescriptorAttribute
Attribute for model type render
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Framework.DataAnnotations
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class TemplateDescriptorAttribute : Attribute, _Attribute
Constructors
TemplateDescriptorAttribute()
Declaration
public TemplateDescriptorAttribute()
Properties
AvailableWithoutTag
Gets or sets a value indicating whether the renderer should be available even when no specific tag is requested.
Declaration
public bool AvailableWithoutTag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Default value is true if no Tags is specified else false.
Default
Gets or sets a value indicating whether this TemplateDescriptorAttribute is default.
Declaration
public bool Default { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Description
Gets or sets the description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Inherited
Gets or sets a value indicating whether model types derived from ModelType automatically will be able to use the render.
Declaration
public bool Inherited { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ModelType
Gets the model type.
Declaration
public Type ModelType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Path
Gets or sets the path to the render.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tags
The tags that this renderer support.
Declaration
public string[] Tags { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
Use TagString instead if your project is CLS-compliant.
TagString
Gets or sets the render tags as a comma-separated list.
Declaration
public string TagString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The render tag. |
Remarks
This can be used instead of Tags if your project is CLS-compliant.
TemplateTypeCategory
Gets or sets the template type of the renderer.
Declaration
public TemplateTypeCategories TemplateTypeCategory { get; set; }
Property Value
Type | Description |
---|---|
TemplateTypeCategories |