SerializationExtensionMethods.SetNamespacePrefixMappings Method

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

Namespace:  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetNamespacePrefixMappings ( _
    model As IEdmModel, _
    mappings As IEnumerable(Of KeyValuePair(Of String, String)) _
)
'Usage
Dim model As IEdmModel 
Dim mappings As IEnumerable(Of KeyValuePair(Of String, String))

model.SetNamespacePrefixMappings(mappings)
public static void SetNamespacePrefixMappings(
    this IEdmModel model,
    IEnumerable<KeyValuePair<string, string>> mappings
)
[ExtensionAttribute]
public:
static void SetNamespacePrefixMappings(
    IEdmModel^ model, 
    IEnumerable<KeyValuePair<String^, String^>>^ mappings
)
static member SetNamespacePrefixMappings : 
        model:IEdmModel * 
        mappings:IEnumerable<KeyValuePair<string, string>> -> unit
public static function SetNamespacePrefixMappings(
    model : IEdmModel, 
    mappings : IEnumerable<KeyValuePair<String, String>>
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

SerializationExtensionMethods Class

Microsoft.Data.Edm.Csdl Namespace