ServiceContractGenerator.NamespaceMappings Property

 

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

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Dictionary<string, string> NamespaceMappings { get; }

Property Value

Type: System.Collections.Generic.Dictionary<String, String>

A mapping from contract description namespaces to managed namespaces.

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.

.NET Framework
Available since 3.0
Return to top
Show: