ModelStore.CreateNamedAnnotation<TAnnotation> (Método) (ModelIdentifier)
Crea un objeto ModelAnnotation con nombre utilizando el identificador de modelo proporcionado.
Espacio de nombres: Microsoft.Data.Schema.SchemaModel
Ensamblado: Microsoft.Data.Schema (en Microsoft.Data.Schema.dll)
Sintaxis
'Declaración
Public Function CreateNamedAnnotation(Of TAnnotation As IModelAnnotation) ( _
identifier As ModelIdentifier _
) As TAnnotation
public TAnnotation CreateNamedAnnotation<TAnnotation>(
ModelIdentifier identifier
)
where TAnnotation : IModelAnnotation
public:
generic<typename TAnnotation>
where TAnnotation : IModelAnnotation
TAnnotation CreateNamedAnnotation(
ModelIdentifier^ identifier
)
member CreateNamedAnnotation :
identifier:ModelIdentifier -> 'TAnnotation when 'TAnnotation : IModelAnnotation
JScript no admite el uso de métodos ni tipos genéricos.
Parámetros de tipo
- TAnnotation
Un objeto Type que se deriva de IModelAnnotation.
Parámetros
- identifier
Tipo: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
ModelIdentifier que contiene el nombre de la anotación.
Valor devuelto
Tipo: TAnnotation
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)