Recreates an object given its PersistInfo. This information was generated by a prior call to GetPersistInfo.
[Visual Basic] Overloads Overridable Public Function CreateInstance( _ ByVal context As ITypeDescriptorContext, _ ByVal persistInfo As PersistInfo _ ) As Object [C#] public virtual object CreateInstance( ITypeDescriptorContext context, PersistInfo persistInfo ); [C++] public: virtual Object* CreateInstance( ITypeDescriptorContext* context, PersistInfo* persistInfo ); [JScript] public function CreateInstance( context : ITypeDescriptorContext, persistInfo : PersistInfo ) : Object;
An object representing the given PersistInfo.
The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (in Visual Basic Nothing), so you should always check. Also, properties on the context object may also return a null reference (Nothing).
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.CreateInstance Overload List | ITypeDescriptorContext | PersistInfo