Share via


SerializationExtensionMethods.GetSchemaNamespace Method

Definition

Gets the schema an annotation should be serialized in.

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

Parameters

annotation
IEdmVocabularyAnnotation

Reference to the calling annotation.

model
IEdmModel

Model containing the annotation.

Returns

Name of the schema the annotation belongs to.

Applies to