设置当前浏览对象的特性。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Sub SetAttributes ( _
ParamArray attributes As Attribute() _
)
public void SetAttributes(
params Attribute[] attributes
)
public:
void SetAttributes(
... array<Attribute^>^ attributes
)
member SetAttributes :
attributes:Attribute[] -> unit
public function SetAttributes(
... attributes : Attribute[]
)
参数
attributes
类型:array<Attribute[]数组 Attribute 对象设置或移除。
备注
任何现有特性会保留。 是默认特性的实例的任何指定的特性不添加到集合属性。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。