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



Defines an attribute that marks a class as being discoverable by the DevForce framework.

Syntax

Visual Basic (Declaration) 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Class Or  _
    AttributeTargets.Struct Or  _
    AttributeTargets.Enum, 
   AllowMultiple=False, 
   Inherited=True)>
Public NotInheritable Class DiscoverableTypeAttribute 
   Inherits System.Attribute
   Implements System.Runtime.InteropServices._Attribute 
Visual Basic (Usage)Copy Code
Dim instance As DiscoverableTypeAttribute
C# 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class | 
    AttributeTargets.Struct | 
    AttributeTargets.Enum, 
   AllowMultiple=false, 
   Inherited=true)]
public sealed class DiscoverableTypeAttribute : System.Attribute, System.Runtime.InteropServices._Attribute  
C++/CLI 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class | 
    AttributeTargets.Struct | 
    AttributeTargets.Enum, 
   AllowMultiple=false, 
   Inherited=true)]
public ref class DiscoverableTypeAttribute sealed : public System.Attribute, System.Runtime.InteropServices._Attribute  

Remarks

The DiscoverableType attribute is used in several situations to identify types to be discovered. When using the DiscoverableTypeMode.KnownType the attribute can be used in place of the IKnownType interface to mark a type as a "known type" for serialization purposes. (See the DataContractSerializer for information on known types.)

Inheritance Hierarchy

System.Object
   System.Attribute
      IdeaBlade.EntityModel.DiscoverableTypeAttribute

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.