使用所提供的批注元数据对象和标识符创建命名的 ModelAnnotation 对象。
命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
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
参数
- annotationClass
 类型:Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass
 一个 ModelAnnotationClass 元数据对象。
- identifier
 类型:Microsoft.Data.Schema.SchemaModel.ModelIdentifier
 一个包含批注名称的 ModelIdentifier。
返回值
类型:Microsoft.Data.Schema.SchemaModel.IModelAnnotation
命名的模型批注。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。