ModelStore.CreateNamedAnnotation<TAnnotation> メソッド (ModelIdentifier)
指定されたモデル識別子を使用して、名前付き ModelAnnotation オブジェクトを作成します。
名前空間: Microsoft.Data.Schema.SchemaModel
アセンブリ: Microsoft.Data.Schema (Microsoft.Data.Schema.dll 内)
構文
'宣言
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 では、ジェネリックな型またはメソッドは使用できません。
型パラメーター
- TAnnotation
IModelAnnotation から派生した Type。
パラメーター
- identifier
型: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
注釈の名前を格納している ModelIdentifier。
戻り値
型: TAnnotation
名前付きモデル注釈。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。