SerializationExtensionMethods.SetNamespacePrefixMappings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.