<parameter>

Specifies the generic parameter when a declared type is a generic type.


<parameter index="integer"
                      type=String" />

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

<knownType>

Specifies a known type that can be returned by a field or property of the declared type.

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.


© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft