共用方式為


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

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 _
)
public DataViewPropertyDescriptor(
    string name,
    string displayName,
    string category
)
public:
DataViewPropertyDescriptor(
    String^ name, 
    String^ displayName, 
    String^ category
)
new : 
        name:string * 
        displayName:string * 
        category:string -> DataViewPropertyDescriptor
public function DataViewPropertyDescriptor(
    name : String, 
    displayName : String, 
    category : String
)

參數

  • name
    類型:String

    屬性名稱。

  • displayName
    類型:String

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

  • category
    類型:String

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

備註

這個建構函式會將這個呼叫委派給 DataViewPropertyDescriptor 建構函式並傳遞描述參數的 isReadOnly 參數的 nullnull 參考 (即 Visual Basic 中的 Nothing) 和 ReadOnlyAttribute.Default.IsReadOnly 。

.NET Framework 安全性

請參閱

參考

DataViewPropertyDescriptor 類別

DataViewPropertyDescriptor 多載

Microsoft.VisualStudio.Data.Framework 命名空間