SerializationExtensionMethods.GetNamespaceAlias Method
Gets 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 Function GetNamespaceAlias ( _
model As IEdmModel, _
namespaceName As String _
) As String
'Usage
Dim model As IEdmModel
Dim namespaceName As String
Dim returnValue As String
returnValue = model.GetNamespaceAlias(namespaceName)
public static string GetNamespaceAlias(
this IEdmModel model,
string namespaceName
)
[ExtensionAttribute]
public:
static String^ GetNamespaceAlias(
IEdmModel^ model,
String^ namespaceName
)
static member GetNamespaceAlias :
model:IEdmModel *
namespaceName:string -> string
public static function GetNamespaceAlias(
model : IEdmModel,
namespaceName : String
) : String
Parameters
- model
Type: Microsoft.Data.Edm.IEdmModel
Model that will be serialized.
- namespaceName
Type: System.String
Namespace the alias is needed for.
Return Value
Type: System.String
The alias of the given namespace, or null if one does not exist.
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).