Documentation > CMS Template API Library > Status > Load(String)
Load
Loads a Status object by name.
public CrownPeak.CMSAPI.Status Load(String)
Returns
Status object or null, if not found
Parameters
Name | Description | Type |
---|---|---|
statusName | Name of the status like "LIVE" or "STAGE". | System.String |
Code Example
C#
Sample:
Status liveStatus = Status.Load("LIVE") asset.Route(liveStatus);