次の方法で共有


ViewService.GetView メソッド

更新 : 2007 年 11 月

指定したモデルに対応するビューを返します。

名前空間 :  Microsoft.Windows.Design.Services
アセンブリ :  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public MustOverride Function GetView ( _
    model As ModelItem _
) As DependencyObject
'使用
Dim instance As ViewService
Dim model As ModelItem
Dim returnValue As DependencyObject

returnValue = instance.GetView(model)
public abstract DependencyObject GetView(
    ModelItem model
)
public:
virtual DependencyObject^ GetView(
    ModelItem^ model
) abstract
public abstract function GetView(
    model : ModelItem
) : DependencyObject

パラメータ

戻り値

型 : System.Windows.DependencyObject

このモデルのビュー。ビューがない場合は nullnull 参照 (Visual Basic では Nothing)。

例外

例外 条件
ArgumentNullException

model が nullnull 参照 (Visual Basic では Nothing) です。

ArgumentException

model が、このサービスに対して有効なモデルではありません。

解説

モデルに対応するビューがない場合、このメソッドは nullnull 参照 (Visual Basic では Nothing) を返します。

アクセス許可

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

参照

参照

ViewService クラス

ViewService メンバ

Microsoft.Windows.Design.Services 名前空間

ModelItem

DesignerView

ModelService

その他の技術情報

編集モデルのアーキテクチャ

WPF デザイナの機能拡張