Class ContentTypeReference
Defines a reference to a Content Type
Inherited Members
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 |