Documentation > CMS Template API Library > Asset > Id

Id

Gets the asset's unique id.

Type

System.Int32

Value

The id.

Code Example

C#

Sample:
	Asset myAsset = Asset.Load("/PathTo/Asset");
	if(myAsset.IsLoaded)
	{
		Out.WriteLine("Asset ID: " + myAsset.Id);	
	}

Connect with Crownpeak