ProjectContextPack Method

Pack the contents of the project file object model to a string and return that string to the caller.

Definition

Namespace: ProjectTask
Assembly: ProjectTask (in ProjectTask.dll) Version: 25.2814.3647
C#
public static string Pack(
	ProjectContext fileObject,
	Action<string> messageHandler = null
)

Parameters

fileObject  ProjectContext
Reference to the object model to be written.
messageHandler  ActionString  (Optional)
Optional reference to a message handler delegate appointed to receive messages from this function, in the form of 'static void CallbackName(string message);'.

Return Value

String
Text version of the project file, in JSON format, if successful. Otherwise, an empty string.

See Also