ContentPath
using Skipcheck.Tm1.Client.Services;Where an entry is in the contents tree: a root folder, then each folder's child by ID.
// Children by ID, which for most entries is the name plus a suffix for the kind
var notes = ContentPath.Applications().Child("Planning").Child("notes.txt.blob");
// Contents('Applications')/Contents('Planning')/Contents('notes.txt.blob')
Children are found by their ID, not their Name, though
$metadata keys entries by Name: TM1 (11.8) gives most entries an ID of
the name plus a suffix for its kind, such as notes.txt.blob for a document,
ibm.extr for a link and }ClientGroups.cube for a cube
reference. A folder's ID is its name. The ID is in the entry TM1 returns when it's
made. $metadata deprecates Entry.ID in schema 11.5.0, but TM1 11.8
still keys by it. Paths are immutable.
Members
Root static | A root folder. |
Applications static | The Applications folder, where applications are built. |
Blobs static | The Blobs folder, holding the documents behind the document references in applications. |
Child | A public child of this folder. |
Child | A public child of this folder, as TM1 returned it, such as from ContentService.CreateAsync. |
Child | A child of this folder as TM1 returned it, public or private. |
Child | A child of this folder, public or private. |
InBlobs | Whether this is in the Blobs folder, where documents themselves are. |
Path | The OData path to the entry, such as Contents('Applications')/Contents('Planning'). |
ToString | The IDs from the root, such as Applications/Planning/notes.txt.blob. |
Equals | |
Equals | |
GetHashCode |
Root
staticContentPath Root(string id)A root folder: Contents('id'), such as Applications.
Applications
staticContentPath Applications()The Applications folder, where applications are built.
Blobs
staticContentPath Blobs()The Blobs folder, holding the documents behind the document references in applications.
Child
ContentPath Child(string id)A public child of this folder: …/Contents('id').
Child
ContentPath Child(Entry entry)A public child of this folder, as TM1 returned it, such as from
ContentService.CreateAsync: found by its ID, which $metadata deprecates but
TM1 (11.8) still keys entries by, so callers needn't read it.
Throws
ArgumentException- The entry has no ID (it was selected away).
Child
ContentPath Child(Entry entry, ContentScope scope)A child of this folder as TM1 returned it, public or private: see Child.
Throws
ArgumentException- The entry has no ID.
Child
ContentPath Child(string id, ContentScope scope)A child of this folder, public or private.
InBlobs
bool InBlobs()Whether this is in the Blobs folder, where documents themselves are.
Path
ODataPath Path()The OData path to the entry, such as Contents('Applications')/Contents('Planning').
ToString
string ToString()The IDs from the root, such as Applications/Planning/notes.txt.blob.
Equals
bool Equals(ContentPath? other)Equals
bool Equals(object? obj)GetHashCode
int GetHashCode()