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.6.308
Syntax void UpdateSchema(
bool finalize
)
Sub UpdateSchema (
finalize As Boolean
)
void UpdateSchema(
bool finalize
)
abstract UpdateSchema :
finalize : bool -> unit
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:
var assetItem = session.Site.Asset("a/100") as IAssetAdminContentDirect;
if(assetItem != null){
assetItem.UpdateSchema(true);
}
See Also