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[];
An array of type MemberInfo of the non-transient, non-static members.
Exception Type | Condition |
---|---|
ArgumentNullException | The type parameter is a null reference (in Visual Basic Nothing). |
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).
FormatterServices Class | FormatterServices Members | System.Runtime.Serialization Namespace | FormatterServices.GetSerializableMembers Overload List