GetTemplateXml(String,String) Method
See Also 
SourceCode.Workflow.Design.InfoPath.FormTemplate.DataSource Namespace > MainDataSource Class > GetTemplateXml Method : GetTemplateXml(String,String) Method



href
name

Glossary Item Box

Gets the template xml as string. If the href attribute in the process instruction must be something specific, use the overload with the href parameter. This is necessary when a form instance (form XML) is not created by the InfoPath client, but some external process. E.g. when a form, that has been published to a SharePoint site as a content type, is opened/saved in SharePoint, the href points to the xsn in SharePoint, if the form is not create from the SharePoint interface, the xsn cannot be found by the form instance.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetTemplateXml( _
   ByVal href As String, _
   ByVal name As String _
) As String
Visual Basic (Usage)Copy Code
Dim instance As MainDataSource
Dim href As String
Dim name As String
Dim value As String
 
value = instance.GetTemplateXml(href, name)
C# 
public string GetTemplateXml( 
   string href,
   string name
)
C++/CLI 
public:
String^ GetTemplateXml( 
   String^ href,
   String^ name
) 

Parameters

href
name

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