skipcheck

TM1 client · Docs · More services

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 staticA root folder.
Applications staticThe Applications folder, where applications are built.
Blobs staticThe Blobs folder, holding the documents behind the document references in applications.
ChildA public child of this folder.
ChildA public child of this folder, as TM1 returned it, such as from ContentService.CreateAsync.
ChildA child of this folder as TM1 returned it, public or private.
ChildA child of this folder, public or private.
InBlobsWhether this is in the Blobs folder, where documents themselves are.
PathThe OData path to the entry, such as Contents('Applications')/Contents('Planning').
ToStringThe IDs from the root, such as Applications/Planning/notes.txt.blob.
Equals
Equals
GetHashCode

Root

static
ContentPath Root(string id)

A root folder: Contents('id'), such as Applications.

Applications

static
ContentPath Applications()

The Applications folder, where applications are built.

Blobs

static
ContentPath 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()