DataConnectionProperties.ModifyProperty 方法

修改当前 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 安全性

请参阅

参考

DataConnectionProperties 类

Microsoft.VisualStudio.Data.Framework 命名空间