DataConnectionProperties.ModifyProperty Method
Modifies an existing property of which the current DataConnectionProperties instance is natively aware.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.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
name
Type: System.StringThe name of a property.
attributes
Type: array<System.Attribute[]A set of attributes that should be added or modified.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The name parameter is nulla null reference (Nothing in Visual Basic). |
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 depending 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.