Click or drag to resize
Askia

SurveyFactoryGetSurveyByPortalId Method (IContext, Int32, IEnumerableSurveyComponent)

Get an instance of an existing survey given its Portal id

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

Parameters

context
Type: AskiaCoreIContext
Context used to access the survey
id
Type: SystemInt32
Portal 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