次の方法で共有


AdapterService.GetAdapter メソッド (Type, Type)

指定されたアイテムに対応する指定された型のアダプターを返します。

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

構文

'宣言
Public MustOverride Function GetAdapter ( _
    adapterType As Type, _
    itemType As Type _
) As Adapter
public abstract Adapter GetAdapter(
    Type adapterType,
    Type itemType
)
public:
virtual Adapter^ GetAdapter(
    Type^ adapterType, 
    Type^ itemType
) abstract
abstract GetAdapter : 
        adapterType:Type * 
        itemType:Type -> Adapter 
public abstract function GetAdapter(
    adapterType : Type, 
    itemType : Type
) : Adapter

パラメーター

  • adapterType
    型: System.Type
    返されるアダプターの型。
  • itemType
    型: System.Type
    アダプターを取得するアイテム。

戻り値

型: Microsoft.Windows.Design.Interaction.Adapter
itemType の adapterType 型の Adapter

解説

要求されたアダプターをアイテムが提供していない場合、このメソッドは nullnull 参照 (Visual Basic では Nothing) を返します。

.NET Framework セキュリティ

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

参照

参照

AdapterService クラス

GetAdapter オーバーロード

Microsoft.Windows.Design.Services 名前空間

Adapter

ParentAdapter

その他の技術情報

WPF デザイナーの機能拡張について