<parameter>
Specifies the generic parameter when a declared type is a generic type.
Schema Hierarchy
<system.runtime.serialization>
<dataContractSerializer> of <system.runtime.serialization>
<declaredTypes>
<add> of <declaredTypes> Element
<knownType>
<parameter>
Syntax
<parameter index="integer"
type=String" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
index |
When the declared type is a generic type, specifies the generic parameter that will return the known type. |
type |
A string that describes the known type used for serialization and deserialization. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Specifies a known type that can be returned by a field or property of the declared type. |
Remarks
For more information about known types, see Data Contract Known Types and DataContractSerializer.
See the <dataContractSerializer> for an example of using this element.
This configuration element cannot have both attributes at the same time. If both attributes are set, a ConfigurationErrorsException occurs.
See Also
Reference
<dataContractSerializer>
<add> of <declaredTypes> Element
DataContractSerializer
Other Resources
© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05