IdeaBlade DevForce 2010 Help Reference
AddKnownTypes Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > IKnownTypeProvider Interface : AddKnownTypes Method



Provide any types for the DataContractSerializer which DevForce won't otherwise discover.

Syntax

Visual Basic (Declaration) 
Function AddKnownTypes() As IEnumerable(Of Type)
Visual Basic (Usage)Copy Code
Dim instance As IKnownTypeProvider
Dim value As IEnumerable(Of Type)
 
value = instance.AddKnownTypes()
C# 
IEnumerable<Type> AddKnownTypes()
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.