Class WeightAttribute
Specifies the weight of pretty much anything.
Inheritance
System.Object
System.Attribute
Namespace: Umbraco.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class WeightAttribute : Attribute, _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 |