CreateInstance method
- Last UpdatedJul 23, 2024
- 1 minute read
Create a new Instance from this template.
Class
ITemplate
Syntax
[C#]
IInstance CreateInstance(
string Name,
bool createContainedObjects
);
[Visual C++]
HRESULT CreateInstance(
[in] BSTR Name,
[in, optional, defaultvalue( 1 )] VARIANT_BOOL createContainedObjects,
[out, retval] IInstance**
);
Parameters
Name
The name of the newly created instance.
createContainedObjects
Set to True to create contained objects.
IInstance
The instance that was created.