修改当前 DataConnectionProperties 实例本身了解现有属性。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Protected Sub ModifyProperty ( _
name As String, _
ParamArray attributes As Attribute() _
)
protected void ModifyProperty(
string name,
params Attribute[] attributes
)
protected:
void ModifyProperty(
String^ name,
... array<Attribute^>^ attributes
)
member ModifyProperty :
name:string *
attributes:Attribute[] -> unit
protected function ModifyProperty(
name : String,
... attributes : Attribute[]
)
参数
- name
类型:System.String
属性的名称。
- attributes
类型:array<System.Attribute[]
应添加或修改的属性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | name 参数为 null。 |
备注
此方法允许更改属性与现有属性。例如,一个属性成为读取仅基于设置的值在另一个属性某些情况下可能是必需的。在第二个属性更新时,数据提供程序会调用 ModifyProperty 方法,通过使用正确的值 ReadOnlyAttribute。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。