| 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
)
Public Shared Function GetSurvey (
context As IContext,
id As Integer,
surveyComponents As IEnumerable(Of SurveyComponent)
) As ISurvey
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:
ISurveyReturn the instance of survey or null if not found
See Also