Class Folder
Defines a folder that will be provisioned into the target list/library
Inherited Members
Namespace: PnP.Framework.Provisioning.Model
Assembly: PnP.Framework.dll
Syntax
public class Folder : BaseModel, IProvisioningTemplateDescendant
Constructors
Folder()
Constructor for the Folder class
Declaration
public Folder()
Folder(String, List<Folder>, ObjectSecurity)
Constructor for the Folder class
Declaration
public Folder(String name, List<Folder> folders = null, ObjectSecurity security = null)
Parameters
String
name
Name of the folder |
List<Folder>
folders
List of the folders |
ObjectSecurity
security
ObjectSecurity for the folder |
Properties
ContentTypeID
The Content Type ID for the Folder
Declaration
public String ContentTypeID { get; set; }
Property Value
String
|
DefaultColumnValues
Defines the default column values for the folder, if any
Declaration
public Dictionary<String, String> DefaultColumnValues { get; set; }
Property Value
Dictionary<String, String>
|
Folders
Defines the child folders of the current Folder, if any
Declaration
public FolderCollection Folders { get; }
Property Value
FolderCollection
|
Name
The Name of the Folder
Declaration
public String Name { get; set; }
Property Value
String
|
Properties
Properties of the folder
Declaration
public Dictionary<string, string> Properties { get; }
Property Value
Dictionary<System.String, System.String>
|
PropertyBagEntries
Defines the property bag properties for the current folder
Declaration
public PropertyBagEntryCollection PropertyBagEntries { get; }
Property Value
PropertyBagEntryCollection
|
Security
Defines the security rules for the current Folder
Declaration
public ObjectSecurity Security { get; }
Property Value
ObjectSecurity
|
Methods
Equals(Folder)
Compares Folder object based on Name, Folders, Security, PropertyBagEntries, DefaultColumnValues, Properties, and ContentTypeId properties.
Declaration
public bool Equals(Folder other)
Parameters
Folder
other
Folder object |
Returns
System.Boolean
true if the Folder object is equal to the current object; otherwise, false. |
Equals(Object)
Compares object with Folder
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object that represents Folder |
Returns
System.Boolean
true if the current object is equal to the Folder |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
System.Int32
Returns HashCode |