Program class
Version Info: This topic applies to Episerver.ConnectForMarketingAutomation 4.0.0 and lower. For later versions, see Sample Connector - IMarketingConnector.
The Program class represents a domain-specific Program instance.
- Inheritance hierarchy.
System.Object
DemoConnector.Models.Program - Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public class Program
Constructor ![](/globalassets/public-method-icon.png)
Initializes a new instance of the Program class.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public Program()
Properties ![](/globalassets/public-property-icon.png)
Program.Id property ![](/globalassets/public-property-icon.png)
The internal ID of the Program. MAI will use this ID when calling into various service methods.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- Property value. Type: Int32
- C# syntax.
public int Id { get; set; }
Program.ListId property ![](/globalassets/public-property-icon.png)
The list ID with which this program instance is associated.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- Property value. Type: Int32
- C# syntax.
public int ListId { get; set; }
Program.Name property ![](/globalassets/public-property-icon.png)
The name of the program.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- Property value. Type: String
- C# syntax.
public string Name { get; set; }
Program.Notes property ![](/globalassets/public-property-icon.png)
Notes about the program.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- Property value. Type: String
- C# syntax.
public string Notes { get; set; }
Program.State property ![](/globalassets/public-property-icon.png)
The state of the current program.
- Namespace. DemoConnector.Models
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- Property value. Type: ProgramState
- C# syntax.
public ProgramState State { get; set; }
Last updated: Dec 09, 2015