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
型 : System.String
プロパティの名前。
- attributes
型 : array<System.Attribute[]
追加または変更する必要がある一連の属性。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | name パラメーターが nullnull 参照 (Visual Basic では Nothing) です。 |
解説
このメソッドは、既存のプロパティに関連付けられた属性を変更できるようにします。たとえば、状況に応じて別のプロパティに設定された値によって読み取り専用にするには 1 とおりのプロパティが必要になることがあります。この 2 番目のプロパティが更新されると、データ プロバイダーは、正しい値で ReadOnlyAttribute を渡す ModifyProperty のメソッドを呼び出します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。