Share via


SerializationExtensionMethods.SetNamespacePrefixMappings Method

Definition

Sets an annotation on the IEdmModel to notify the serializer of preferred prefix mappings for xml namespaces.

public static void SetNamespacePrefixMappings (this Microsoft.OData.Edm.IEdmModel model, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> mappings);
static member SetNamespacePrefixMappings : Microsoft.OData.Edm.IEdmModel * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
<Extension()>
Public Sub SetNamespacePrefixMappings (model As IEdmModel, mappings As IEnumerable(Of KeyValuePair(Of String, String)))

Parameters

model
IEdmModel

Reference to the calling object.

mappings
IEnumerable<KeyValuePair<String,String>>

XmlNamespaceManage containing mappings between namespace prefixes and xml namespaces.

Applies to