ApplicationManifest.Compile method
Communications Server 2007 Server SDK Documentation |
ApplicationManifest.Compile
The Compile method parses the application manifest specified with the CreateFromFile or CreateFromString method and compiles the content.
[C#] public void Compile();FakePre-aac35ea49e9c4a50bb9b224231666455-2f26d195a6b243fa9cbf2349f2c495c9
Parameters
This method has no parameters.
Return Values
This method has no return values.
Remarks
This method will compile the application manifest. The message filter script in the CDATA block encapsulated by the <lc:splScript>
tags must be written in Microsoft's SIP Processing Language (MSPL).
If compilation is successful, the public properties of the ApplicationManifest object will reflect the content of the XML document.
If compilation is unsuccessful, CompilerErrorException will be thrown, and the resulting exception object will contain the specific error or errors. The public properties of the ApplicationManifest object instance will not be updated until compilation is successful.
For more information about creating and implementing an application manifest, or in writing an MSPL script, see SIP Application Manifests.
Example Code
The following sample demonstrates how to load an application manifest XML source document into the ApplicationManifest object and compile it.
ApplicationManifest myAppManifest = ApplicationManifest.CreateFromFile("C:\\xmldocs\\my_app_manifest_xml_file.xml"); try { myAppManifest.Compile(); } catch (CompilerErrorException compilerErrorException) { Console.WriteLine("The following MSPL compiler errors occurred:"); foreach (object errMsg in compilerErrorException.ErrorMessages) { Console.Write("\t{0}", errMsg.ToString()); } Console.WriteLine(); }
Requirements
Redistributable: Requires Microsoft Office Communications Server 2007.
Namespace: Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)
See Also
ApplicationManifest.SetDebugOutput, ApplicationManifest.CreateFromFile, ApplicationManifest.CreateFromString, ApplicationManifest, Creating an Application Manifest
What did you think of this topic? |
© 2007 Microsoft Corporation. All rights reserved. |