Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoObjectTypeAttribute

    Attribute to associate a GUID string and Type with an UmbracoObjectType Enum value

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.CodeAnnotations
    Assembly: Umbraco.Core.dll
    Syntax
    public class UmbracoObjectTypeAttribute : Attribute

    Constructors

    View Source

    UmbracoObjectTypeAttribute(String)

    Declaration
    public UmbracoObjectTypeAttribute(string objectId)
    Parameters
    Type Name Description
    System.String objectId
    View Source

    UmbracoObjectTypeAttribute(String, Type)

    Declaration
    public UmbracoObjectTypeAttribute(string objectId, Type modelType)
    Parameters
    Type Name Description
    System.String objectId
    Type modelType

    Properties

    View Source

    ModelType

    Declaration
    public Type? ModelType { get; }
    Property Value
    Type Description
    System.Nullable<Type>
    View Source

    ObjectId

    Declaration
    public Guid ObjectId { get; }
    Property Value
    Type Description
    Guid
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoObjectTypeAttribute(String)
      • UmbracoObjectTypeAttribute(String, Type)
    • Properties
      • ModelType
      • ObjectId
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX