指定されたアイテムに対応する指定された型のアダプターを返します。
名前空間: Microsoft.Windows.Design.Services
アセンブリ: Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)
構文
'宣言
Public Function GetAdapter(Of TAdapterType As Adapter) ( _
itemType As Type _
) As TAdapterType
public TAdapterType GetAdapter<TAdapterType>(
Type itemType
)
where TAdapterType : Adapter
public:
generic<typename TAdapterType>
where TAdapterType : Adapter
TAdapterType GetAdapter(
Type^ itemType
)
member GetAdapter :
itemType:Type -> 'TAdapterType when 'TAdapterType : Adapter
JScript では、ジェネリックな型またはメソッドは使用できません。
型パラメーター
- TAdapterType
アダプターの型。
パラメーター
- itemType
型: System.Type
アダプターを取得するアイテム。
戻り値
型: TAdapterType
itemType の TAdapterType 型の Adapter。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Services 名前空間