Document.MakeTransientElements
Method
Description:
This method encapsulates the process of creating transient elements in the document.
This method encapsulates the process of creating transient elements in the document.
Remarks:
The method establishes a context within which transient elements will be created and then invokes the given maker object to create the elements. For more information refer to the IsTransient method.
The method establishes a context within which transient elements will be created and then invokes the given maker object to create the elements. For more information refer to the IsTransient method.
Parameters
| Parameter | Type | Description |
|---|---|---|
| maker | ITransientElementMaker | An instance of a class that implements the <a href="0d213d8b-eace-f2ff-bd02-3bbd948a6dec.htm">ITransientElementMaker</a> interface. The maker will be called to create element(s) which would become transient. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | This Document has an open editing transaction and is accepting changes. -or- This Document is read-only: It cannot be modified. |