Class Directory
Defines a Directory element, to describe a folder in the current repository that will be used to upload files into the target Site
Inherited Members
Namespace: PnP.Framework.Provisioning.Model
Assembly: PnP.Framework.dll
Syntax
public class Directory : BaseModel, IProvisioningTemplateDescendant
Constructors
Directory()
Constructor for Directory class
Declaration
public Directory()
Directory(String, String, Boolean, FileLevel, Boolean, String, String, String, ObjectSecurity)
Constructor for Directory class
Declaration
public Directory(string src, string folder, bool overwrite, FileLevel level = FileLevel.Draft, bool recursive = false, string includeExtensions = null, string excludeExtensions = null, string metadataMappingFile = null, ObjectSecurity security = null)
Parameters
System. Source Name |
System. Folder Path |
System. Overwrite property |
File File Level |
System. Recursive property |
System. Extensions which can be included in directory files |
System. Extensions which are excluded in drectory files |
System. Metadata Mapping File |
Object ObjectSecurity |
Properties
ExcludedExtensions
The file Extensions to exclude while uploading the Directory
Declaration
public String ExcludedExtensions { get; set; }
Property Value
String
|
Folder
The TargetFolder of the Directory
Declaration
public string Folder { get; set; }
Property Value
System.
|
IncludedExtensions
The file Extensions to include while uploading the Directory
Declaration
public String IncludedExtensions { get; set; }
Property Value
String
|
Level
The Level status for the files in the Directory
Declaration
public FileLevel Level { get; set; }
Property Value
MetadataMappingFile
The file path of JSON mapping file with metadata for files to upload in the Directory
Declaration
public String MetadataMappingFile { get; set; }
Property Value
String
|
Overwrite
The Overwrite flag for the files in the Directory
Declaration
public bool Overwrite { get; set; }
Property Value
System.
|
Recursive
Defines whether to recursively browse through all the child folders of the Directory
Declaration
public bool Recursive { get; set; }
Property Value
System.
|
Security
Defines the Security rules for the File
Declaration
public ObjectSecurity Security { get; set; }
Property Value
Src
The Src of the Directory
Declaration
public string Src { get; set; }
Property Value
System.
|
Methods
Equals(Directory)
Compares Directory object based on ExcludedExtensions, Folder, IncludedExtensions, Level, MetaDataMappingFile, Overwrite, Recursive, Src and Security properties.
Declaration
public bool Equals(Directory other)
Parameters
Directory
other
Directory object |
Returns
System. true if the Directory object is equal to the current object; otherwise, false. |
Equals(Object)
Compares object with Directory
Declaration
public override bool Equals(object obj)
Parameters
System. Object that represents Directory |
Returns
System. true if the current object is equal to the Directory |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
System. Returns HashCode |