Class ContentTypeBinding
Domain Object for Content Type Binding in the Provisioning Template
Inherited Members
Namespace: PnP.Framework.Provisioning.Model
Assembly: PnP.Framework.dll
Syntax
public class ContentTypeBinding : BaseModel, IProvisioningTemplateDescendant
Properties
ContentTypeId
Gets or Sets the Content Type ID
Declaration
public string ContentTypeId { get; set; }
Property Value
System.String
|
Default
Gets or Sets if the Content Type should be the default Content Type in the library
Declaration
public bool Default { get; set; }
Property Value
System.Boolean
|
Hidden
Declares if the Content Type should be Hidden from New button of the list or library, optional attribute.
Declaration
public bool Hidden { get; set; }
Property Value
System.Boolean
|
Remove
Declares if the Content Type should be Removed from the list or library
Declaration
public bool Remove { get; set; }
Property Value
System.Boolean
|
Methods
Equals(ContentTypeBinding)
Compares ContentTypeBinding object based on ContentTypeId, Default and Remove properties.
Declaration
public bool Equals(ContentTypeBinding other)
Parameters
ContentTypeBinding
other
ContentTypeBinding object |
Returns
System.Boolean
true if the ContentTypeBinding object is equal to the current object; otherwise, false. |
Equals(Object)
Compares object with ContentTypeBinding
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object that represents ContentTypeBinding |
Returns
System.Boolean
true if the current object is equal to the ContentTypeBinding |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
System.Int32
Returns HashCode |