ICustomQueryInterface.GetInterface(Guid, IntPtr) メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したインターフェイス ID に従ってインターフェイスを返します。
public:
System::Runtime::InteropServices::CustomQueryInterfaceResult GetInterface(Guid % iid, [Runtime::InteropServices::Out] IntPtr % ppv);
C#
[System.Security.SecurityCritical]
public System.Runtime.InteropServices.CustomQueryInterfaceResult GetInterface(ref Guid iid, out IntPtr ppv);
C#
public System.Runtime.InteropServices.CustomQueryInterfaceResult GetInterface(ref Guid iid, out IntPtr ppv);
[<System.Security.SecurityCritical>]
abstract member GetInterface : Guid * nativeint -> System.Runtime.InteropServices.CustomQueryInterfaceResult
abstract member GetInterface : Guid * nativeint -> System.Runtime.InteropServices.CustomQueryInterfaceResult
Public Function GetInterface (ByRef iid As Guid, ByRef ppv As IntPtr) As CustomQueryInterfaceResult
- iid
- Guid
要求されたインターフェイスの GUID。
- ppv
-
IntPtr
nativeint
要求されたインターフェイスへの参照 (このメソッドから制御が戻るとき)。
IUnknown::QueryInterface のカスタム実装が使用されたかどうかを示す列挙値の 1 つ。
- 属性
アプリケーションでは、マネージド コードを使用して、カスタム インターフェイスと標準ランタイム インターフェイスに独自の実装を指定できます。
戻り値は CustomQueryInterfaceResult 、COM アクセス中に特定のインターフェイスを表示または非表示にすることで、カスタマイズされた実装を有効または無効にするために使用できます。
このメソッドは COM には表示されません。
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。