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)

Get all of the serializable members for a particular class.

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

Parameters

type
The type being serialized.

Return Value

An array of type MemberInfo of the non-transient, non-static members.

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

See Also

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