指定したオブジェクトの列挙体を使用して Selection クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.Windows.Design.Interaction
アセンブリ: Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)
構文
'宣言
Public Sub New ( _
selectedObjects As IEnumerable _
)
public Selection(
IEnumerable selectedObjects
)
public:
Selection(
IEnumerable^ selectedObjects
)
new :
selectedObjects:IEnumerable -> Selection
public function Selection(
selectedObjects : IEnumerable
)
パラメーター
- selectedObjects
型: System.Collections.IEnumerable
選択に追加するオブジェクトの列挙体。
例外
例外 | 条件 |
---|---|
ArgumentNullException | selectedObjects パラメーターが nullnull 参照 (Visual Basic では Nothing) です。 |
解説
このコンストラクターは、指定したオブジェクトを格納する選択を作成します。 selectedObjects の最初のオブジェクトが、"主要" 選択オブジェクトです。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間