Share via


SerializationExtensionMethods.SetNamespaceAlias Method

Sets the serialization alias for a given namespace

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetNamespaceAlias ( _
    model As IEdmModel, _
    namespaceName As String, _
    alias As String _
)
'Usage
Dim model As IEdmModel 
Dim namespaceName As String 
Dim alias As String 

model.SetNamespaceAlias(namespaceName, _
    alias)
public static void SetNamespaceAlias(
    this IEdmModel model,
    string namespaceName,
    string alias
)
[ExtensionAttribute]
public:
static void SetNamespaceAlias(
    IEdmModel^ model, 
    String^ namespaceName, 
    String^ alias
)
static member SetNamespaceAlias : 
        model:IEdmModel * 
        namespaceName:string * 
        alias:string -> unit
public static function SetNamespaceAlias(
    model : IEdmModel, 
    namespaceName : String, 
    alias : String
)

Parameters

  • namespaceName
    Type: System.String
    The namespace to set the alias for.

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.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

SerializationExtensionMethods Class

Microsoft.Data.Edm.Csdl Namespace