WCF-Xtensions Class Reference for Mono
CreateObjectContract Method






Type of the object.
Creates a JsonObjectContract for the given type.
Syntax
protected virtual JsonObjectContract CreateObjectContract( 
   System.Type objectType
)
protected function CreateObjectContract( 
    objectType: System.Type
): JsonObjectContract; virtual; 
protected function CreateObjectContract( 
   objectType : System.Type
) : JsonObjectContract;
protected: virtual JsonObjectContract* CreateObjectContract( 
   System.Type* objectType
) 
protected:
virtual JsonObjectContract^ CreateObjectContract( 
   System.Type^ objectType
) 
'Declaration
 
Protected Overridable Function CreateObjectContract( _
   ByVal objectType As System.Type _
) As JsonObjectContract
 
'Usage
 
Dim instance As DefaultContractResolver
Dim objectType As System.Type
Dim value As JsonObjectContract
 
value = instance.CreateObjectContract(objectType)

Parameters

objectType
Type of the object.

Return Value

A JsonObjectContract for the given type.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DefaultContractResolver Class
DefaultContractResolver Members

Send Feedback