The Portrate Interview Engine

DPLConfig.GetCampaign Method 

Gets the campaign with the given ID/Name. The campaign contains form elements that are used to render and collect data from the user.

[Visual Basic]
Public Function GetCampaign( _ 
   ByVal name As String _ 
) As DPLCampaign
[C#]
public DPLCampaign GetCampaign(
   string name
);
[C++]
public: DPLCampaign* GetCampaign(
   String* name
);
[JScript]
public function GetCampaign(
   String name
): DPLCampaign;

Parameters

name
The name of the campaign to lookup

Return Value

An instance of DPLCampaign or null if not found.

See Also

DPLConfig Class | Portrate.Interview.Model Namespace