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
name
Type: System.StringThe name of a property.
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
- 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.
See Also
Reference
DataConnectionProperties Class