Export (0) Print
Expand All

managedCode Element

Office 2007

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

ElementDescription
solutionDefinitionRoot 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

AttributeTypeRequiredDescriptionPossible Values
projectPathxsd:stringOptionalSpecifies 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
languagemanagedCodeTypeRequiredSpecifies 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
versionxsd:stringRequiredSpecifies 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
enabledxdYesNoOptionalSpecifies 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.



Community Additions

ADD
Show:
© 2014 Microsoft