static string GetCachedTitle( string ident )

book_4_sparkGenerated
code_blocksInput

Description

The GetCachedTitle method retrieves the cached title of a package based on its identifier. This method is useful for quickly accessing the title of a package without needing to fetch the entire package data from a remote source.

Usage

To use the GetCachedTitle method, provide the identifier of the package as a string. The method will return the cached title of the package if available.

Example

string packageIdentifier = "example.package.id";
string cachedTitle = Sandbox.Package.GetCachedTitle(packageIdentifier);

if (!string.IsNullOrEmpty(cachedTitle))
{
    // Use the cached title
    // e.g., display it in the UI
}
else
{
    // Handle the case where the cached title is not available
}