Class Page
Inherited Members
Namespace: PnP.Framework.Provisioning.Model
Assembly: PnP.Framework.dll
Syntax
public class Page : BaseModel, IProvisioningTemplateDescendant
Constructors
Page()
Constructor for Page class
Declaration
public Page()
Page(String, Boolean, WikiPageLayout, IEnumerable<WebPart>, ObjectSecurity, Dictionary<String, String>)
Constructor for Page class
Declaration
public Page(string url, bool overwrite, WikiPageLayout layout, IEnumerable<WebPart> webParts, ObjectSecurity security = null, Dictionary<String, String> fields = null)
Parameters
System. Url of the page |
System. Overwrite flag for the page |
Wiki Page Layout |
IEnumerable<Web Webparts of the page |
Object Security Rules for the page |
Dictionary<String, String>
fields
Fields used in the page |
Page(String, Boolean, WikiPageLayout, IEnumerable<WebPart>, Boolean, ObjectSecurity)
Declaration
public Page(string url, bool overwrite, WikiPageLayout layout, IEnumerable<WebPart> webParts, bool welcomePage = false, ObjectSecurity security = null)
Parameters
System.
|
System.
|
Wiki
|
IEnumerable<Web
|
System.
|
Object
|
Page(String, Boolean, WikiPageLayout, IEnumerable<WebPart>, Boolean, ObjectSecurity, Dictionary<String, String>)
Declaration
public Page(string url, bool overwrite, WikiPageLayout layout, IEnumerable<WebPart> webParts, bool welcomePage = false, ObjectSecurity security = null, Dictionary<String, String> fields = null)
Parameters
System.
|
System.
|
Wiki
|
IEnumerable<Web
|
System.
|
Object
|
Dictionary<String, String>
fields
|
Properties
Fields
The Fields to setup for the Page
Declaration
public Dictionary<String, String> Fields { get; }
Property Value
Dictionary<String, String>
|
Layout
Gets or sets the WikiPage layout
Declaration
public WikiPageLayout Layout { get; set; }
Property Value
Overwrite
Gets or sets the overwrite flag for the page
Declaration
public bool Overwrite { get; set; }
Property Value
System.
|
Security
Defines the Security rules for the Page
Declaration
public ObjectSecurity Security { get; }
Property Value
Url
Gets or sets the page Url
Declaration
public string Url { get; set; }
Property Value
System.
|
WebParts
Gets or sets the webparts of the page
Declaration
public WebPartCollection WebParts { get; }
Property Value
WelcomePage
Declaration
public bool WelcomePage { get; set; }
Property Value
System.
|
Methods
Equals(Page)
Compares Page object based on Url, Overwrite, Layout, WelcomePage, Webparts, Security and Fields properties.
Declaration
public bool Equals(Page other)
Parameters
Page
other
Page object |
Returns
System. true if the Page object is equal to the current object; otherwise, false. |
Equals(Object)
Compares object with Page
Declaration
public override bool Equals(object obj)
Parameters
System. Object that represents Page |
Returns
System. true if the current object is equal to the Page |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
System. Returns HashCode |