Documentation > CMS Template API Library > Asset > SetHidden(Boolean)
SetHidden
Sets the hidden flag on the instance.
public System.Boolean SetHidden(Boolean)
Returns
True if successful
Parameters
Name | Description | Type |
---|---|---|
isHidden | (Optional) the value of the hidden flag. Defaults to true. | System.Boolean |
Code Example
C#
Sample:
Asset anAsset = Asset.Load("/Site/MyAsset"); bool wasHidden = anAsset.SetHidden(true); Out.DebugWriteLine("Asset is hidden flag set to {0}", wasHidden);