指定した装飾のビューを取得します。
名前空間: Microsoft.Windows.Design.Interaction
アセンブリ: Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)
構文
'宣言
Public Shared Function GetView ( _
adorner As DependencyObject _
) As ViewItem
public static ViewItem GetView(
DependencyObject adorner
)
public:
static ViewItem^ GetView(
DependencyObject^ adorner
)
static member GetView :
adorner:DependencyObject -> ViewItem
public static function GetView(
adorner : DependencyObject
) : ViewItem
パラメーター
- adorner
型: System.Windows.DependencyObject
タスクを取得する装飾要素。
戻り値
型: Microsoft.Windows.Design.Interaction.ViewItem
adorner に関連付けられているビュー。ビューが設定されていない場合は nullnull 参照 (Visual Basic では Nothing)。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | adorner は nullnull 参照 (Visual Basic では Nothing) なので、 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間