Retrieves the PersistInfo object for the given value. This object describes the given value as persisted information, which can be saved to disk or moved. This information can later be reconstructed by passing the PersistInfo to GetValue.
[Visual Basic] Overloads Overridable Public Function GetPersistInfo( _ ByVal context As ITypeDescriptorContext, _ ByVal value As Object _ ) As PersistInfo [C#] public virtual PersistInfo GetPersistInfo( ITypeDescriptorContext context, object value ); [C++] public: virtual PersistInfo* GetPersistInfo( ITypeDescriptorContext* context, Object* value ); [JScript] public function GetPersistInfo( context : ITypeDescriptorContext, value : Object ) : PersistInfo;
The PersistInfo representing the persisted state of the given object.
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.GetPersistInfo Overload List | PersistInfo | ITypeDescriptorContext