Specifies the generic parameter when a declared type is a generic type.
The following sections describe attributes, child elements, and parent elements.
When the declared type is a generic type, specifies the generic parameter that will return the known type.
A string that describes the known type used for serialization and deserialization.
The first parameter in the generic type. For example, a List has only one parameter. If it is used as the declared type, the index would be set to "0".
The second parameter in a generic type. For example, a Dictionary has two parameters. If the known type is returned by the second parameter, set the index attribute to "1".
Specifies a known type that can be returned by a field or property of the declared type.
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.