DevForce Help Reference
IKnownTypeProvider Interface
Members 


Interface which allows for programmatic specification of known types.
Syntax
'Declaration
 
<InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.IKnownTypeProvider)>
Public Interface IKnownTypeProvider 
'Usage
 
Dim instance As IKnownTypeProvider
[InterfaceExport(ContractName="", ContractType=IdeaBlade.EntityModel.IKnownTypeProvider)]
public interface IKnownTypeProvider 
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 the marker interface IKnownType, 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.

DevForce will find and use all implementations of the IKnownTypeProvider interface.

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 Members
IdeaBlade.EntityModel Namespace

Send Feedback