Documentation > CMS Template API Library > PublishingArgs
CrownPeak.CMSAPI.PublishingArgs
An object which encapsulates the publishing args.
Name | Description | Type |
---|---|---|
HasArg | Returns true if one of the argument names matches the parameter. |
Method |
Count | The number of publishing args available |
Property |
HasArgs | Returns true if the object contains args. |
Property |
PublishingArgs[String] | Get the value of an argument with the given name. |
Property |
Code Example
C#
Sample:
// If the args were _sortOrder=Date&_name=Fred, the following would print // key : _sortOrder Value: Date // key : _name Value: Fred foreach(Arg entry in context.PublishingArgs) { Out.WriteLine("key : " + entry.Key + " Value: " + entry.Value); }