AddToMainDataSource Property
See Also 
SourceCode.Workflow.Design.InfoPath Namespace > InfoPathSOMethod Class : AddToMainDataSource Property



Glossary Item Box

Gets or sets a value indicating whether to add to main data source.

Syntax

Visual Basic (Declaration) 
Public Property AddToMainDataSource As Boolean
Visual Basic (Usage)Copy Code
Dim instance As InfoPathSOMethod
Dim value As Boolean
 
instance.AddToMainDataSource = value
 
value = instance.AddToMainDataSource
C# 
public bool AddToMainDataSource {get; set;}
C++/CLI 
public:
property bool AddToMainDataSource {
   bool get();
   void set (    bool value);
}

Property Value

true if to add to main data source; otherwise, false.

Remarks

This flag will add the schema of the method to the main datasource of the Infopath document. If it's values are set it will be executed by the succeeding rule of the client event.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also