Click or drag to resize
Askia

SurveyFactoryGetSurvey Method (IContext, Int32, IEnumerableSurveyComponent)

Get an instance of an existing survey given its id

Namespace:  AskiaCore
Assembly:  AskiaCore (in AskiaCore.dll) Version: 6.0.0-build000000000000000000000000000000000000000001
Syntax
public static ISurvey GetSurvey(
	IContext context,
	int id,
	IEnumerable<SurveyComponent> surveyComponents
)

Parameters

context
Type: AskiaCoreIContext
Context used to access the survey
id
Type: SystemInt32
Id of the survey to access
surveyComponents
Type: System.Collections.GenericIEnumerableSurveyComponent
Components of the survey to load.

Return Value

Type: ISurvey
Return the instance of survey or null if not found
See Also