語言

MetadataProperty 類別

定義

代表項目中繼資料屬性的類別

public class MetadataProperty : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type MetadataProperty = class
    inherit MetadataItem
Public Class MetadataProperty
Inherits MetadataItem
繼承
MetadataProperty

屬性

名稱 Description
BuiltInTypeKind

會選內建的那種。MetadataProperty

Documentation

取得或設定與此類型相關的文件。

(繼承來源 MetadataItem)
IsAnnotation

會得到一個布林值,指示該中繼資料屬性是否為註解。

MetadataProperties

取得目前類型的屬性清單。

(繼承來源 MetadataItem)
Name

知道這個 MetadataProperty名字。

PropertyKind

明白這點 PropertyKind的價值。

TypeUsage

取得包含此TypeUsage類型及其面向的類別實例MetadataProperty。

Value

明白這點 MetadataProperty的價值。

方法

名稱 Description
AddAnnotation(String, Object)

新增或更新標註,並附上指定的名稱與值。

(繼承來源 MetadataItem)
Create(String, TypeUsage, Object)

用來建構 MetadataProperty 物件的工廠方法。

CreateAnnotation(String, Object)

建立包含指定名稱與值的元資料註解。

RemoveAnnotation(String)

移除帶有指定名稱的註解。

(繼承來源 MetadataItem)

適用於