Class WeightAttribute
Indicates the relative weight of a resolved object type.
Inheritance
System.Object
System.Attribute
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class WeightAttribute : Attribute, _Attribute
Constructors
WeightAttribute(Int32)
Initializes a new instance of the WeightAttribute class with a weight.
Declaration
public WeightAttribute(int weight)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | weight | The object type weight. |
Properties
Weight
Gets or sets the weight of the object type.
Declaration
public int Weight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |