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!

FormatterServices.GetSerializableMembers (Type, StreamingContext)

Get all of the serializable members for a particular class.

[Visual Basic]
Overloads Public Shared Function GetSerializableMembers( _
   ByVal type As Type, _
   ByVal context As StreamingContext _
) As MemberInfo ()
[C#]
public static MemberInfo[] GetSerializableMembers(
   Type type,
   StreamingContext context
);
[C++]
public: static MemberInfo* GetSerializableMembers(
   Type* type,
   StreamingContext context
) [];
[JScript]
public static function GetSerializableMembers(
   type : Type,
   context : StreamingContext
) : MemberInfo[];

Parameters

type
The type being serialized or cloned.
context
The context in which the serialization is occurring.

Exceptions

Exception Type Condition
ArgumentNullException The type parameter is a null reference (in Visual Basic Nothing).

Remarks

For all practical intents and purposes, the serializable members of a class are the non-transient, non-static members (fields and properties). In order to be included, properties must have both a getter and a setter. A class, which implements ISerializable or has a serialization surrogate may not use all of these members (or may have additional members).

Currently, we only do anything different if context has the StreamingContextStates value Clone set.

See Also

FormatterServices Class | FormatterServices Members | System.Runtime.Serialization Namespace | FormatterServices.GetSerializableMembers Overload List