Share via


SerializationExtensionMethods.GetNamespaceAlias(IEdmModel, String) Method

Definition

Gets the serialization alias for a given namespace.

public static string GetNamespaceAlias (this Microsoft.OData.Edm.IEdmModel model, string namespaceName);
static member GetNamespaceAlias : Microsoft.OData.Edm.IEdmModel * string -> string
<Extension()>
Public Function GetNamespaceAlias (model As IEdmModel, namespaceName As String) As String

Parameters

model
IEdmModel

Model that will be serialized.

namespaceName
String

Namespace the alias is needed for.

Returns

The alias of the given namespace, or null if one does not exist.

Applies to