Documentation > CMS Template API Library > Asset > Label

Label

Gets the label or name of this asset. Call asset.Rename to change the asset label.

Type

System.String

Value

The label.

Code Example

C#

Sample:
1
2
3
4
5
Asset myAsset = Asset.Load("/PathTo/Asset");   
if(myAsset.IsLoaded)
{
    Out.WriteLine("Asset Label: " + myAsset.Label);
}

Connect with Crownpeak