指定したプロパティ名およびコレクション情報を使用して、DataContextValueSourceAttribute クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.Windows.Design
アセンブリ: Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)
構文
'宣言
Public Sub New ( _
dataContextValueSourceProperty As String, _
isCollectionItem As Boolean _
)
public DataContextValueSourceAttribute(
string dataContextValueSourceProperty,
bool isCollectionItem
)
public:
DataContextValueSourceAttribute(
String^ dataContextValueSourceProperty,
bool isCollectionItem
)
new :
dataContextValueSourceProperty:string *
isCollectionItem:bool -> DataContextValueSourceAttribute
public function DataContextValueSourceAttribute(
dataContextValueSourceProperty : String,
isCollectionItem : boolean
)
パラメーター
- dataContextValueSourceProperty
型: System.String
データ コンテキストの値のソースであるプロパティの名前。
- isCollectionItem
型: System.Boolean
データ コンテキストがコレクション内の項目であるかどうかを示します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
DataContextValueSourceAttribute クラス
DataContextValueSourceAttribute オーバーロード