Bagikan melalui


SerializationExtensionMethods.GetSerializationLocation Method

Gets the location 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 GetSerializationLocation ( _
    annotation As IEdmVocabularyAnnotation, _
    model As IEdmModel _
) As Nullable(Of EdmVocabularyAnnotationSerializationLocation)
'Usage
Dim annotation As IEdmVocabularyAnnotation 
Dim model As IEdmModel 
Dim returnValue As Nullable(Of EdmVocabularyAnnotationSerializationLocation)

returnValue = annotation.GetSerializationLocation(model)
public static Nullable<EdmVocabularyAnnotationSerializationLocation> GetSerializationLocation(
    this IEdmVocabularyAnnotation annotation,
    IEdmModel model
)
[ExtensionAttribute]
public:
static Nullable<EdmVocabularyAnnotationSerializationLocation> GetSerializationLocation(
    IEdmVocabularyAnnotation^ annotation, 
    IEdmModel^ model
)
static member GetSerializationLocation : 
        annotation:IEdmVocabularyAnnotation * 
        model:IEdmModel -> Nullable<EdmVocabularyAnnotationSerializationLocation> 
public static function GetSerializationLocation(
    annotation : IEdmVocabularyAnnotation, 
    model : IEdmModel
) : Nullable<EdmVocabularyAnnotationSerializationLocation>

Parameters

Return Value

Type: System.Nullable<EdmVocabularyAnnotationSerializationLocation>
The location the annotation should be serialized at.

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