Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    WeightAttribute(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 Source

    Weight

    Gets the weight value.

    Declaration
    public int Weight { get; }
    Property Value
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX