managedCode Element

Specifies managed code form template project settings for Microsoft Visual Studio and Visual Studio Tools for Applications.

Usage

  
<managedCode 
projectPath="xsd:string"
language="xsf2:managedCodeType"
version="xsd:string"
enabled="xsf:xdYesNo"
/>

Element Information

Element type xsd:complexType
Namespace xsf2

Elements and Attributes

Parent Elements

Element Description
solutionDefinition Root element for the elements defined in the xsf2 namespace. Specifies new properties and features that have been added to InfoPath 2007 form templates.

Child Elements

None.

Attributes

Attribute Type Required Description Possible Values
projectPath xsd:string Optional Specifies where to save the Visual Studio project files for a managed code form template.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
language managedCodeType Required Specifies which managed code programming language to use when creating business logic for this form template.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
  • CSharp
  • VisualBasic
version xsd:string Required Specifies which version of the InfoPath object model to use for this form template when writing managed code.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
String
enabled xdYesNo Optional Specifies whether the managed code project for this form template is enabled.
  • yes
  • no

Definition

  
<xsd:element name="managedCode">
   <xsd:complexType>
      <xsd:sequence />
      <xsd:attribute name="projectPath" type="xsd:string" use="optional" />
      <xsd:attribute name="language" type="xsf2:managedCodeType" use="required" />
      <xsd:attribute name="version" type="xsd:string" use="required" />
      <xsd:attribute name="enabled" type="xsf:xdYesNo" use="optional" />
   </xsd:complexType>
</xsd:element>

Remarks

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.