.NET Framework Class Library for Silverlight
Assembly..::.CreateInstance Method
Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search.
Namespace:
System.Reflection
Assembly:
mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
Public Function CreateInstance ( _
typeName As String _
) As Object
Dim instance As [Assembly]
Dim typeName As String
Dim returnValue As Object
returnValue = instance.CreateInstance(typeName)
public Object CreateInstance(
string typeName
)
Return Value
Type:
System..::.ObjectAn instance of Object representing the type, with culture, arguments, binder, and activation attributes set to nullNothingnullptra null reference (Nothing in Visual Basic), and BindingFlags set to Public or Instance, or nullNothingnullptra null reference (Nothing in Visual Basic) if typeName is not found.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference