Documentation > CMS Template API Library > RouteResponse

CrownPeak.CMSAPI.RouteResponse

Returned by some calls to encapsulate the result of the operation. Contains the resulting image and properties to tell whether there was an error and to provide an error message

NameDescriptionType
ErrorMessage

Gets or sets the error message.

Property
FailedAssets

Gets or sets the list of failed assets.

Property
HasError

Gets or sets a value indicating whether this instance has error.

Property
IsLongRunning

Gets or sets a value indicating whether this Route request used a long running task.

Property
JobId

Gets or sets the value of the long running Job Id if this request used a long running task.

Property

Code Example

C#

Sample:

             
             
                // resize the image to 50x50 and call it a thumbnail
                RouteResponse res = asset.RouteCollection(collId, sLive);
            
                if (!res.HasError)
                {
                  context.Error = "Error routing assets." + " error: " + res.ErrorMessage;           
                }  
             
             

Connect with Crownpeak