Session.CurrentAssembly Property
[Read-only] This property returns the current, active Assembly, which is the first item in the Assemblies collection.
Syntax
public HotDocs.Server.Assembly CurrentAssembly { get; }
Example
The following Visual C# example adds an assembly to the queue and then displays the file name of the current assembly. Please note that if the queue contained other templates already, the current assembly would not be the most recently-added assembly.
public class ExampleCode { static void Main() { HotDocs.Server.Session HDSSession = new HotDocs.Server.Session(); HotDocs.Server.Assembly HDSAssembly = HDSSession.Assemblies.AddNew(); HDSAssembly.TemplatePath = "c:\\temp\\demoempl.docx"; HDSAssembly.DocumentPath = "c:\\temp\\output.docx"; System.Console.WriteLine(HDSSession.CurrentAssembly.TemplatePath); } }