Extracts the data from and object.
[Visual Basic] Public Shared Function GetObjectData( _ ByVal obj As Object, _ ByVal members() As MemberInfo _ ) As Object () [C#] public static object[] GetObjectData( object obj, MemberInfo[] members ); [C++] public: static Object* GetObjectData( Object* obj, MemberInfo* members[] ) []; [JScript] public static function GetObjectData( obj : Object, members : MemberInfo[] ) : Object[];
An array of Object containing data from the members of obj listed in members.
Exception Type | Condition |
---|---|
ArgumentNullException | The obj or members parameter is a null reference (in Visual Basic Nothing).
An element of members is a null reference (Nothing). |
SerializationException | An element of members does not represent a field. |
members is the array of members which we wish to extract (must be FieldInfo's). For each supplied member, extract the matching value and return it in an array of objects of the same size.
FormatterServices Class | FormatterServices Members | System.Runtime.Serialization Namespace