SerializationExtensionMethods.SetSchemaNamespace Method
Sets the schema an annotation should appear in.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetSchemaNamespace ( _
annotation As IEdmVocabularyAnnotation, _
model As IEdmModel, _
schemaNamespace As String _
)
'Usage
Dim annotation As IEdmVocabularyAnnotation
Dim model As IEdmModel
Dim schemaNamespace As String
annotation.SetSchemaNamespace(model, _
schemaNamespace)
public static void SetSchemaNamespace(
this IEdmVocabularyAnnotation annotation,
IEdmModel model,
string schemaNamespace
)
[ExtensionAttribute]
public:
static void SetSchemaNamespace(
IEdmVocabularyAnnotation^ annotation,
IEdmModel^ model,
String^ schemaNamespace
)
static member SetSchemaNamespace :
annotation:IEdmVocabularyAnnotation *
model:IEdmModel *
schemaNamespace:string -> unit
public static function SetSchemaNamespace(
annotation : IEdmVocabularyAnnotation,
model : IEdmModel,
schemaNamespace : String
)
Parameters
- annotation
Type: Microsoft.Data.Edm.Annotations.IEdmVocabularyAnnotation
The annotation the schema should be set for.
- model
Type: Microsoft.Data.Edm.IEdmModel
Model containing the annotation.
- schemaNamespace
Type: System.String
The schema the annotation belongs in.
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.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).