System Library Common Episerver
Search Results for

    DocFx,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.Properties.MessageEditorDescriptor,SystemLibrary.Common.Episerver.Properties.MessageProperty,SystemLibrary.Common.Episerver.Properties.MessageController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionFactory,SystemLibrary.Common.Episerver.Attributes.JsonEditController,SystemLibrary.Common.Episerver.Attributes.JsonEditFactory,SystemLibrary.Common.Episerver.Descriptors.HideCategoryListDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceController,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceEditorDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceProperty,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionController,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionFactory,SystemLibrary.Common.Episerver.Initialize.RemoveSuggestedContentTypes,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationServicesOptions,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationBuilderOptions,SystemLibrary.Common.Episerver.EditController,SystemLibrary.Common.Episerver.Abstract.BaseController,SystemLibrary.Common.Episerver.Abstract.BaseMultiSelectionFactory,SystemLibrary.Common.Episerver.ConnectionStringsConfig,SystemLibrary.Common.Episerver.PropertiesConfig,SystemLibrary.Common.Episerver.EditConfig,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.FontAwesome,SystemLibrary.Common.Episerver.AppSettings.Configuration,SystemLibrary.Common.Episerver.Attributes.ParentLinkReferenceFactory,SystemLibrary.Common.Episerver.Abstract.InternalBaseController,WebApplicationInitializer
    Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Episerver.Extensions SystemLibrary.Common.Episerver.dll

    Extension methods for 'EPiServer.Shell.ObjectEditing.ExtendedMetadata' which is inheriting DisplayMetadata from MVC

    ExtendedMetadataExtensions

    public static class ExtendedMetadataExtensions

    Inheritance
    System.Object
    ExtendedMetadataExtensions
    Examples
    Arguments
    X

    Methods

    Return attribute of type that has been added to the property, or null if not added to the property

    Finds for instance 'DisplayAttribute' on a public virtual property

    Usually used within a ISelectionFactory in the method 'GetSelections'
    View Source

    public static T GetAttribute<T>(this ExtendedMetadata metadata) where T : Attribute

    X
    IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata)
    {
        var attribute = metadata.GetAttribute<CustomAttribute>();
    
        if(attribute != null)
        {
        }
    }
    X
    Generic types
    Name Description
    T
    Methods arguments
    Type Name Description
    EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata
    X
    Type Description
    T

    }

    • View Source
    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Episerver