FolderObject Class

Namespace: bcpDevKit.Entities.Vault
Assembly: bcpDevKit.dll

Syntax

public class FolderObject

Properties

Type

Name

Description

../../../../_images/prop.ico FolderObject

ParentFolder

Gives direct access to the parent folder of the current folder.

../../../../_images/prop.ico string

StandardFolderCategory

Gets or sets the standard folder category.

../../../../_images/prop.ico string

Name

Gets or sets the name of the current folder.

../../../../_images/prop.ico string

Category

Gets or sets the category of the current folder.

../../../../_images/prop.ico string

Id

Gets or sets the id of the current folder.

../../../../_images/prop.ico string

IsLibraryStr

Gets or sets whether the current folder is a library or not. (boolean value as string)

../../../../_images/prop.ico CreatedObject

Created

Gets or sets information about the creation of the current folder like the user or the date.

../../../../_images/prop.ico StateObject

State

Gets or sets information about the state of the current folder.

../../../../_images/prop.ico List<UDPObject>

UDP

Gets a list of properties about the children folders of the current folder.

../../../../_images/prop.ico List<FolderObject>

FolderObjects

Gets a list of all children folders of the current folder.

../../../../_images/prop.ico List<FileObject>

FileObjects

Gets a list of all files in the current folder.

../../../../_images/prop.ico List<LinkObject>

Link

Gets a list of all links of the current folder.

Methods

Type

Name

Description

../../../../_images/method.ico FolderObject

AddFolder(string folderName)

Takes a folder name to create and add a new child folder to the current folder (if it is not already a child).

../../../../_images/method.ico FolderObject

AddFolder(FolderObject folder)

Takes a folder and add it to the children of the current folder, or do nothing if its already added.

../../../../_images/method.ico FolderObject

GetFolder(string folderName)

Takes a folder name and return a the specified child folder.

../../../../_images/method.ico FileObject

AddFileWithIteration(string targetFileName, string sourceFileName)

Takes a target file name and a source file name, create a file and add it to the current folder. This file will already contain a default iteration.

../../../../_images/method.ico FileObject

AddFileWithIterationRef(string targetFileName, long checksum, DateTime createDate)

Takes a target file name, a source file name and a creation date and add it to the current folder. This file will already contain a default iteration ref.

../../../../_images/method.ico FileObject

GetFile(string fileName)

Takes a file name and return the specified file if it is located inside the current folder.

../../../../_images/method.ico UDPObject

AddProperty(string name, string value)

Takes a name and a value and add it to the properties of the current folder.

../../../../_images/method.ico void

Setstate(string definition, string name)

Takes a definition and a name and sets the state of the current folder.

../../../../_images/method.ico LinkObject

AddLink(string id)

Takes an id, create a link and adds it to the current folder.

../../../../_images/method.ico void

SetLibrary(bool library)

Takes a boolean value and determine, whether the current folder is a library or not.

../../../../_images/method.ico bool

IsLibrary()

Returns whether the current folder is a library.

../../../../_images/method.ico FileObject

AddFile(FileObject file)

Takes a file and add it to the child files of the current folder.