共用方式為


DataViewPropertyDescriptor.SetAttributes 方法

將指定的屬性加入至這個屬性 (Property) 的屬性 (Attribute) 清單。

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

語法

'宣告
Public Sub SetAttributes ( _
    ParamArray values As Attribute() _
)
public void SetAttributes(
    params Attribute[] values
)
public:
void SetAttributes(
    ... array<Attribute^>^ values
)
member SetAttributes : 
        values:Attribute[] -> unit
public function SetAttributes(
    ... values : Attribute[]
)

參數

  • values
    類型:array<Attribute[]

    要加入的 Attribute 物件陣列。

備註

這個方法會列舉屬性,和,每個屬性,這個呼叫委派給 SetAttribute

.NET Framework 安全性

請參閱

參考

DataViewPropertyDescriptor 類別

Microsoft.VisualStudio.Data.Framework 命名空間