Share via


SerializationExtensionMethods.GetSchemaNamespace Method

Gets the schema an annotation should be serialized in.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetSchemaNamespace ( _
    annotation As IEdmVocabularyAnnotation, _
    model As IEdmModel _
) As String
'Usage
Dim annotation As IEdmVocabularyAnnotation 
Dim model As IEdmModel 
Dim returnValue As String 

returnValue = annotation.GetSchemaNamespace(model)
public static string GetSchemaNamespace(
    this IEdmVocabularyAnnotation annotation,
    IEdmModel model
)
[ExtensionAttribute]
public:
static String^ GetSchemaNamespace(
    IEdmVocabularyAnnotation^ annotation, 
    IEdmModel^ model
)
static member GetSchemaNamespace : 
        annotation:IEdmVocabularyAnnotation * 
        model:IEdmModel -> string
public static function GetSchemaNamespace(
    annotation : IEdmVocabularyAnnotation, 
    model : IEdmModel
) : String

Parameters

Return Value

Type: System.String
Name of the schema the annotation belongs to.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmVocabularyAnnotation. 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