修改当前 DataConnectionProperties 实例本身了解现有的属性。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.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
类型:String属性的名称。
attributes
类型:array<Attribute[]应添加或修改的特性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | name 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
此方法允许将特性与现有属性。 例如,的属性成为只读属性根据上其他属性设置的值可能在某些情况下是必需的。 当第二个属性更新时,该数据提供程序将调用 ModifyProperty 方法,传递具有正确的值 ReadOnlyAttribute。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。