This example illustrates how to publish applications to a catalog in a customer’s account using C#.

publicclassAddCatalogApplicationsModel{/// <summary>/// List of applications to be published/// </summary> [Required]publicIEnumerable<AddCatalogApplicationModel>Applications{get;set;}}publicclassAddCatalogApplicationModel{/// <summary>/// The application id on the master image for the catalog. If the id is not known (for a start menu application) or for adding a custom (publish by path) application, the Id should be left null/// </summary>publicstringId{get;set;}/// <summary>/// Indicates if the application was discovered via scan of start menu apps or if this is a custom (publish by path) application/// </summary>publicboolIsStartMenuDiscovered{get;set;}=true;/// <summary>/// Name of the application on the master image/// </summary> [Required]publicstringName{get;set;}/// <summary>/// Path of the application on the master image/// </summary> [Required]publicstringPath{get;set;}/// <summary>/// Command line parameters to pass to the app when launching/// </summary>publicstringCommandLineParameters{get;set;}/// <summary>/// The raw app icon represented as a base64 string. For start menu app this field should be left blank./// </summary>publicstringBase64Icon{get;set;}}