Click or drag to resize

IAssetAdminContentDirectUpdateSchema Method


Updates the schema that the asset was created from to match any changes to the asset.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
void UpdateSchema(
	bool finalize
)

Parameters

finalize
Type: SystemBoolean
Set to true to finalize the schema and save a usable version; false to save the schema into draft mode.
Examples
Example getting the checked out version of an asset in custom hook:
C#
var assetItem = session.Site.Asset("a/100") as IAssetAdminContentDirect;
if(assetItem != null){
    assetItem.UpdateSchema(true);
}
See Also