共用方式為


ModelStore.CreateNamedAnnotation 方法 (ModelAnnotationClass, ModelIdentifier)

使用提供的附註中繼資料物件和識別項,建立具名的 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

參數

傳回值

型別:Microsoft.Data.Schema.SchemaModel.IModelAnnotation
具名的模型附註。

.NET Framework 安全性

請參閱

參考

ModelStore 類別

CreateNamedAnnotation 多載

Microsoft.Data.Schema.SchemaModel 命名空間

ModelAnnotationClass

ModelIdentifier

IModelAnnotation