DataConnectionProperties.ModifyProperty メソッド

DataConnectionProperties の現在のインスタンスをネイティブに認識する既存のプロパティを変更します。

名前空間:  Microsoft.VisualStudio.Data
アセンブリ:  Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.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[]
)

パラメーター

  • attributes
    型 : array<System.Attribute[]
    追加または変更する必要がある一連の属性。

例外

例外 条件
ArgumentNullException

name パラメーターが null です。

解説

このメソッドは、既存のプロパティに関連付けられた属性を変更できるようにします。たとえば、状況に応じて別のプロパティに読み込まれたときに値のみに基づくするには 1 とおりのプロパティが必要になることがあります。この 2 番目のプロパティが更新されると、データ プロバイダーは、正しい値で ReadOnlyAttribute を渡す ModifyProperty のメソッドを呼び出します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataConnectionProperties クラス

Microsoft.VisualStudio.Data 名前空間