ModelStore.CreateNamedAnnotation (Método) (ModelAnnotationClass, ModelIdentifier)
Crea un objeto ModelAnnotation con nombre utilizando el objeto de metadatos de anotación y el identificador proporcionados.
Espacio de nombres: Microsoft.Data.Schema.SchemaModel
Ensamblado: Microsoft.Data.Schema (en Microsoft.Data.Schema.dll)
Sintaxis
'Declaración
Public Function CreateNamedAnnotation ( _
annotationClass As ModelAnnotationClass, _
identifier As ModelIdentifier _
) As IModelAnnotation
public IModelAnnotation CreateNamedAnnotation(
ModelAnnotationClass annotationClass,
ModelIdentifier identifier
)
public:
IModelAnnotation^ CreateNamedAnnotation(
ModelAnnotationClass^ annotationClass,
ModelIdentifier^ identifier
)
member CreateNamedAnnotation :
annotationClass:ModelAnnotationClass *
identifier:ModelIdentifier -> IModelAnnotation
public function CreateNamedAnnotation(
annotationClass : ModelAnnotationClass,
identifier : ModelIdentifier
) : IModelAnnotation
Parámetros
- annotationClass
Tipo: Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass
Un objeto de metadatos ModelAnnotationClass.
- identifier
Tipo: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
ModelIdentifier que contiene el nombre de la anotación.
Valor devuelto
Tipo: Microsoft.Data.Schema.SchemaModel.IModelAnnotation
Una anotación del modelo con nombre.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
CreateNamedAnnotation (Sobrecarga)