Partager via


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

'Declaration
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[]
)

Parameters

  • attributes
    Type: array<System.Attribute[]

    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.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace