다음을 통해 공유


ApplicationManifest.Compile method

 
Microsoft Office Live Communications Server 2005 with SP1

ApplicationManifest.Compile

The Compile method parses the application manifest specified with the CreateFromFile or CreateFromString method and compiles the content.

[C#]
public void Compile();

  [Visual Basic .NET]
Public Sub Compile()

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 on creating and implementing an application manifest, or in writing an MSPL script, see 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

Server: Installed on Microsoft Windows Server 2003 family.
Redistributable: Requires Microsoft Office Live Communications Server 2005 with SP1.
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?
  © 2008 Microsoft Corporation. All rights reserved.