NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeConverter.GetPersistInfo (ITypeDescriptorContext, Object)

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;

Parameters

context
An ITypeDescriptorContext that represents a context for the formatter.
value
The object to persist.

Return Value

The PersistInfo representing the persisted state of the given object.

Remarks

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).

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.GetPersistInfo Overload List | PersistInfo | ITypeDescriptorContext