[This is preliminary documentation and is subject to change.]

In derived classes, provides specialized serialization logic for specific properties contained in this object.

Namespace:  Facebook.Api
Assembly:  Facebook (in Facebook.dll) Version: 0.2009.4.13 (0.2009.4.13)

Syntax

C#
protected virtual void SerializeProperty(
	string key,
	ref IDictionary<string, Object> args
)
Visual Basic (Declaration)
Protected Overridable Sub SerializeProperty ( _
	key As String, _
	ByRef args As IDictionary(Of String, Object) _
)
Visual C++
protected:
virtual void SerializeProperty(
	String^ key, 
	IDictionary<String^, Object^>^% args
)

Parameters

key
Type: System..::.String
The key of the property to serialize.
args
Type: System.Collections.Generic..::.IDictionary<(Of <(String, Object>)>) %
A reference to a dictionary of arguments that will be passed directly to a FacebookRequest object.

Remarks

This method allows specialized serialization logic, such as JSON encoding, to be applied to specific properties.

To implement, use a switch (Select in VB.NET) statement to filter based on key and provide the property-specific logic. The resulting value should then be added to args using the same key .

Properties that do not require additional processing (strings, integral values, etc) should be ignored.

See Also

FacebookArgs Class
Facebook.Api Namespace