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:
	Asset myAsset = Asset.Load("/PathTo/Asset");	
	if(myAsset.IsLoaded)
	{
		Out.WriteLine("Asset Label: " + myAsset.Label);
	}

Connect with Crownpeak