WCF-Xtensions Class Reference for Mono
CreatePrimitiveContract Method






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

Parameters

objectType
Type of the object.

Return Value

A JsonPrimitiveContract 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