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

NameDescriptionType
statusName Name of the status like "LIVE" or "STAGE". System.String

Code Example

C#

Sample:

            
            Status liveStatus = Status.Load("LIVE")    
            asset.Route(liveStatus);
            
            

Connect with Crownpeak