Documentation > CMS Template API Library > Asset > GetContent()
GetContent
Gets the content fields and caches them in this asset's indexer, then returns them in a Dictionary.
public Dictionary<String,String> GetContent()
Returns
A dictionary containing all of this asset's fields.
Parameters
Name | Description | Type |
---|---|---|
Code Example
C#
Sample:
Dictionary<string, string> theContent = asset.GetContent(); asset.SaveContent(anotherAsset.GetContent());