将当前的属性浏览对象。
命名空间: 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<System.Attribute[]
数组设置或移除的 Attribute 对象。
备注
任何现有属性不保留。是默认特性的实例的任何指定的属性未向属性集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。