IdeaBlade DevForce 2010 Help Reference
IKnownType Interface
Members  See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : IKnownType Interface



Marker interface for specification of known types.

Syntax

Visual Basic (Declaration) 
Public Interface IKnownType 
Visual Basic (Usage)Copy Code
Dim instance As IKnownType
C# 
public interface IKnownType 
C++/CLI 
public interface class IKnownType 

Remarks

A "known type" is a type which the DataContractSerializer knows how to serialize. DevForce uses this serializer in Silverlight applications, or in any n-tier application in which the Object Server UseDCS flag has been set. DevForce will automatically discover most known types, but in some situations you will also need to specify the known types for DevForce to use. You can do this in several ways: 1) use this marker interface, 2) decorate the type with the DiscoverableTypeAttribute, 3) decorate an existing known type with the System.Runtime.Serialization.KnownTypeAttribute, or 4) implement the IKnownTypeProvider to programmatically add known types.

The types which you need to make known to DevForce are typically those used with the EntityManager.InvokeServerMethod or the Notification Service.

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.