ServiceContractGenerator.NamespaceMappings Property

Definition

Gets a mapping from contract description namespaces to managed namespaces that is used when generating code.

public System.Collections.Generic.Dictionary<string,string> NamespaceMappings { get; }

Property Value

A mapping from contract description namespaces to managed namespaces.

Remarks

Use this property to associated a contract description namespace with a managed namespace that is used when generating code.

You can use the wildcard character "*" as the dictionary key to specify a managed namespace to use for any description namespaces that are not explicitly mapped to a managed namespace.

The default managed namespace is used when no namespace mapping is specified for a particular description namespace.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1