Search Results for

    Show / Hide Table of Contents

    Class ContentTypeReference

    Defines a reference to a Content Type

    Inheritance
    System.Object
    BaseModel
    ContentTypeReference
    Inherited Members
    BaseModel.ParentTemplate
    Namespace: PnP.Framework.Provisioning.Model
    Assembly: PnP.Framework.dll
    Syntax
    public class ContentTypeReference : BaseModel, IProvisioningTemplateDescendant

    Properties

    Name

    Specifies the name of the item

    Declaration
    public string Name { get; set; }
    Property Value
    System.String

    Remove

    Defines whether the item should be removed or not

    Declaration
    public bool Remove { get; set; }
    Property Value
    System.Boolean

    Methods

    Equals(ContentTypeReference)

    Compares ContentTypeReference object based on Id, Name, and Remove properties.

    Declaration
    public bool Equals(ContentTypeReference other)
    Parameters
    ContentTypeReference other

    ContentTypeReference object

    Returns
    System.Boolean

    true if the ContentTypeReference object is equal to the current object; otherwise, false.

    Equals(Object)

    Compares object with ContentTypeReference

    Declaration
    public override bool Equals(object obj)
    Parameters
    System.Object obj

    Object that represents ContentTypeReference

    Returns
    System.Boolean

    true if the current object is equal to the ContentTypeReference

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    Returns HashCode

    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