Template Constructor (String, String, Stream, Boolean, Boolean) |
Constructor that takes a Stream
Namespace: HotDocs.Cloud.Client
Assembly: HotDocs.Cloud.Client (in HotDocs.Cloud.Client.dll) Version: 1.0.5652.20312
Syntax
public Template( string packageID, string templateID, Stream packageStream, bool closeStream, bool forceUploadPackage = false )
Parameters
- packageID
- Type: SystemString
A unique identifier for the template package in which the desired template is found. Although you could use any string value that uniquely identifies the package, a GUID is recommended since every template package (including new versions of existing template packages) must have a unique ID. (If you create a new package but use the same ID as an existing package, HotDocs Cloud Services may continue using the old package if it is still in its cache.) - templateID
- Type: SystemString
The file name of the template within the specified package. If this parameter is an empty string, HotDocs Cloud Services will use the package's main template. - packageStream
- Type: System.IOStream
The stream that contains the template package to use. - closeStream
- Type: SystemBoolean
A value that indicates whether or not the client should close the stream after reading it. - forceUploadPackage (Optional)
- Type: SystemBoolean
A value that indicates if the package will be uploaded without first checking to see if it is needed. Set this value to true sparingly; if it is true and the package was not needed after all, HotDocs Cloud Services will return an exception.
See Also