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
參數
- annotationClass
型別:Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass
ModelAnnotationClass 中繼資料物件。
- identifier
型別:Microsoft.Data.Schema.SchemaModel.ModelIdentifier
ModelIdentifier ,包含附註的名稱。
傳回值
型別:Microsoft.Data.Schema.SchemaModel.IModelAnnotation
具名的模型附註。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。