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) | ![]() |
---|---|
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 |
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.)
System.Object
System.Attribute
IdeaBlade.EntityModel.DiscoverableTypeAttribute
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