SIFWorks ADK 2.0
CreateInstance Method (className, nonPublic)
NamespacesEdustructures.UtilClassFactoryCreateInstance(String, Boolean)

[This is preliminary documentation and is subject to change.]

This method instantiates an object for the fully qualified class name
Declaration Syntax
C#Visual BasicVisual C++
public static Object CreateInstance(
	string className,
	bool nonPublic
)
Public Shared Function CreateInstance ( _
	className As String, _
	nonPublic As Boolean _
) As Object
public:
static Object^ CreateInstance (
	String^ className, 
	bool nonPublic
)
Parameters
className (String)
The fully qualified class name to create
nonPublic (Boolean)
If true, both public and non-public constructors are searched for. If false, only the public constructor is called
Return Value
a created instance of the specified type
Exceptions
ExceptionCondition
TypeLoadExceptionThrown if the type cannot be found

Assembly: Edustructures.SifWorks.Adk (Module: Edustructures.SifWorks.Adk) Version: 2.0.0.10