Class WeightAttribute
Specifies the weight of pretty much anything.
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class WeightAttribute : Attribute
Constructors
View SourceWeightAttribute(int)
Initializes a new instance of the WeightAttribute class with a weight.
Declaration
public WeightAttribute(int weight)
Parameters
| Type | Name | Description |
|---|---|---|
| int | weight |
Properties
View SourceWeight
Gets the weight value.
Declaration
public int Weight { get; }
Property Value
| Type | Description |
|---|---|
| int |