Click or drag to resize

ProjectFolderPropertyDocumentCollectionEnsureExistence Method

Ensures the existence of a certain ProjectFolderPropertyDocument. If the document already exists, the existing ProjectFolderPropertyDocument is returned; otherwise a new ProjectFolderPropertyDocument is created, added to the collection, and returned.

Namespace: Altaxo.Main.Properties
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public ProjectFolderPropertyDocument EnsureExistence(
	string itemName
)

Parameters

itemName  String
Name of the ProjectFolderPropertyDocument. An exception is thrown if the name is not a folder name (it has to end with a backslash).

Return Value

ProjectFolderPropertyDocument
If the document with the given name already exists, the existing ProjectFolderPropertyDocument is returned; otherwise a new ProjectFolderPropertyDocument is created, added to the collection, and returned.
See Also