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

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[];

Parameters

obj
The object to be written to the formatter
members
The members to be extracted from the object.

Return Value

An array of Object containing data from the members of obj listed in members.

Exceptions

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.

Remarks

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.

See Also

FormatterServices Class | FormatterServices Members | System.Runtime.Serialization Namespace