DevForce Help Reference
AddKnownTypes Method


Provide any types for the DataContractSerializer which DevForce won't otherwise discover.
Syntax
'Declaration
 
Function AddKnownTypes() As IEnumerable(Of Type)
'Usage
 
Dim instance As IKnownTypeProvider
Dim value As IEnumerable(Of Type)
 
value = instance.AddKnownTypes()
IEnumerable<Type> AddKnownTypes()
Remarks
This method will be called when communications are initialized on both the client and the server. The method may also be called when the EntityCacheState is saved or restored, and when the various SerializationFns are called. The publicly available method KnownTypeHelper.GetServiceKnownTypes also calls this method.
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

IKnownTypeProvider Interface
IKnownTypeProvider Members

Send Feedback