DataConnectionProperties.ModifyProperty 方法

修改当前 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[]
)

参数

异常

异常 条件
ArgumentNullException

name 参数为 null。

备注

此方法允许更改属性与现有属性。例如,一个属性成为读取仅基于设置的值在另一个属性某些情况下可能是必需的。在第二个属性更新时,数据提供程序会调用 ModifyProperty 方法,通过使用正确的值 ReadOnlyAttribute

.NET Framework 安全性

请参见

参考

DataConnectionProperties 类

Microsoft.VisualStudio.Data 命名空间