共用方式為


DataViewPropertyDescriptor 建構函式 (String, String, String, String, Boolean)

DataViewPropertyDescriptor 初始化類別的新執行個體的屬性名稱,屬性名稱來顯示目的,分類名稱和說明的另一版本的。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Sub New ( _
    name As String, _
    displayName As String, _
    category As String, _
    description As String, _
    isReadOnly As Boolean _
)
public DataViewPropertyDescriptor(
    string name,
    string displayName,
    string category,
    string description,
    bool isReadOnly
)
public:
DataViewPropertyDescriptor(
    String^ name, 
    String^ displayName, 
    String^ category, 
    String^ description, 
    bool isReadOnly
)
new : 
        name:string * 
        displayName:string * 
        category:string * 
        description:string * 
        isReadOnly:bool -> DataViewPropertyDescriptor
public function DataViewPropertyDescriptor(
    name : String, 
    displayName : String, 
    category : String, 
    description : String, 
    isReadOnly : boolean
)

參數

  • name
    類型:String

    屬性名稱。

  • displayName
    類型:String

    一個顯示的屬性名稱。 這個屬性是用來建立 DisplayNameAttribute

  • category
    類型:String

    的屬性的群組分類的名稱 (在屬性方格中)。 這個參數可用來建立 CategoryAttribute

  • description
    類型:String

    屬性的描述。 這個屬性是用來建立 DescriptionAttribute

  • isReadOnly
    類型:Boolean

    值表示屬性是否 Boolean 為唯讀。 如果這個值是 ReadOnlyAttribute.Default.IsReadOnly與不同,它是用來建立 ReadOnlyAttribute

.NET Framework 安全性

請參閱

參考

DataViewPropertyDescriptor 類別

DataViewPropertyDescriptor 多載

Microsoft.VisualStudio.Data.Framework 命名空間