KnownTypeAttribute Class |
Namespace: System.Runtime.Serialization
public sealed class KnownTypeAttribute : Attribute
The KnownTypeAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | KnownTypeAttribute(String) |
Initializes a new instance of the System.Runtime.Serialization.KnownTypeAttribute
class with the name of a method that returns an System.Collections.IEnumerable
of known types.
|
![]() | KnownTypeAttribute(Type) |
Initializes a new instance of the System.Runtime.Serialization.KnownTypeAttribute
class with the specified type.
|
Name | Description | |
---|---|---|
![]() | Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | MethodName |
Gets the name of a method that will return a list of types that should be
recognized during serialization or deserialization.
|
![]() | Type |
Gets the type that should be recognized during serialization or deserialization
by the System.Runtime.Serialization.DataContractSerializer.
|