Search Results for

    Show / Hide Table of Contents

    Class BaseProvisioningTemplateObjectDictionary<TKey, TItem>

    Generic keyed collection of items stored in the ProvisioningTemplate graph

    Inheritance
    System.Object
    BaseProvisioningTemplateObjectDictionary<TKey, TItem>
    Namespace: PnP.Framework.Provisioning.Model
    Assembly: PnP.Framework.dll
    Syntax
    public abstract class BaseProvisioningTemplateObjectDictionary<TKey, TItem> : KeyedCollection<TKey, TItem>, IProvisioningTemplateDescendant where TItem : BaseModel
    Type Parameters
    TKey

    The type of the Key for the keyed collection

    TItem

    The type of the Item for the keyed collection

    Constructors

    BaseProvisioningTemplateObjectDictionary(ProvisioningTemplate)

    Custom constructor to manage the ParentTemplate for the collection and all the children of the collection

    Declaration
    public BaseProvisioningTemplateObjectDictionary(ProvisioningTemplate parentTemplate)
    Parameters
    ProvisioningTemplate parentTemplate

    Parent provisioning template

    Properties

    ParentTemplate

    References the parent ProvisioningTemplate for the current provisioning artifact

    Declaration
    public virtual ProvisioningTemplate ParentTemplate { get; }
    Property Value
    ProvisioningTemplate

    Implements
    IProvisioningTemplateDescendant.ParentTemplate

    Methods

    ClearItems()

    Declaration
    protected override void ClearItems()

    InsertItem(Int32, TItem)

    Declaration
    protected override void InsertItem(int index, TItem item)
    Parameters
    System.Int32 index

    TItem item

    RemoveItem(Int32)

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    System.Int32 index

    SetItem(Int32, TItem)

    Declaration
    protected override void SetItem(int index, TItem item)
    Parameters
    System.Int32 index

    TItem item

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer