Represents the top level entity of InfoPath Forms Services.
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
The object is an SharePoint Server 2010 shared service provider that extends the SPService object. Like all shared service providers, it is load-balanced and runs at the farm level. There is only one instance of the forms service per farm.
The following code example writes the forms service status to the console that the forms service is not available. References are required in the Visual Studio project to the , the , and the assemblies.
Browse for the assembly at [drive]:\Program Files\Microsoft Office Servers\14.0\Bin.
For the example to work, Import statements are required for the
Dim LocalFormsService As FormsService Try LocalFormsService = SPFarm.Local.Services.GetValue(Of FormsService)(FormsService.ServiceName) Console.WriteLine(LocalFormsService.Status.ToString()) Catch ex As Exception Console.WriteLine("The forms service is not provisioned.") End Try
For the example to work, using statements are required for the