DataConnectionProperties.ModifyProperty Method

Modifies an existing property of which the current DataConnectionProperties instance is natively aware.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Protected Sub ModifyProperty ( _
    name As String, _
    ParamArray attributes As Attribute() _
)
'使用
Dim name As String
Dim attributes As Attribute()

Me.ModifyProperty(name, attributes)
protected void ModifyProperty(
    string name,
    params Attribute[] attributes
)
protected:
void ModifyProperty(
    String^ name, 
    ... array<Attribute^>^ attributes
)
protected function ModifyProperty(
    name : String, 
    ... attributes : Attribute[]
)

Parameters

  • attributes
    Type: []

    A set of attributes that should be added or modified.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

Remarks

This method allows changing the attributes associated with an existing property. For example, in some cases it might be necessary for one property to become read only based on a value set on another property. When this second property is updated, a data provider would call the ModifyProperty method, passing a ReadOnlyAttribute with the correct value.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace