Editar

Compartilhar via


ServiceContractGenerator.NamespaceMappings Property

Definition

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

public:
 property System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ NamespaceMappings { System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ get(); };
public System.Collections.Generic.Dictionary<string,string> NamespaceMappings { get; }
member this.NamespaceMappings : System.Collections.Generic.Dictionary<string, string>
Public ReadOnly Property NamespaceMappings As Dictionary(Of String, String)

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