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