Bagikan melalui


SerializationExtensionMethods.SetSerializationLocation Method

Sets 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 Sub SetSerializationLocation ( _
    annotation As IEdmVocabularyAnnotation, _
    model As IEdmModel, _
    location As Nullable(Of EdmVocabularyAnnotationSerializationLocation) _
)
'Usage
Dim annotation As IEdmVocabularyAnnotation 
Dim model As IEdmModel 
Dim location As Nullable(Of EdmVocabularyAnnotationSerializationLocation)

annotation.SetSerializationLocation(model, _
    location)
public static void SetSerializationLocation(
    this IEdmVocabularyAnnotation annotation,
    IEdmModel model,
    Nullable<EdmVocabularyAnnotationSerializationLocation> location
)
[ExtensionAttribute]
public:
static void SetSerializationLocation(
    IEdmVocabularyAnnotation^ annotation, 
    IEdmModel^ model, 
    Nullable<EdmVocabularyAnnotationSerializationLocation> location
)
static member SetSerializationLocation : 
        annotation:IEdmVocabularyAnnotation * 
        model:IEdmModel * 
        location:Nullable<EdmVocabularyAnnotationSerializationLocation> -> unit
public static function SetSerializationLocation(
    annotation : IEdmVocabularyAnnotation, 
    model : IEdmModel, 
    location : Nullable<EdmVocabularyAnnotationSerializationLocation>
)

Parameters

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