RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) 메서드

정의

주의

RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.

지정된 클래스의 지정된 인터페이스를 반환합니다.

public:
 static IntPtr GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid);
public static IntPtr GetRuntimeInterfaceAsIntPtr (Guid clsid, Guid riid);
[System.Obsolete("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0019", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static IntPtr GetRuntimeInterfaceAsIntPtr (Guid clsid, Guid riid);
[System.Runtime.InteropServices.ComVisible(false)]
[System.Security.SecurityCritical]
public static IntPtr GetRuntimeInterfaceAsIntPtr (Guid clsid, Guid riid);
static member GetRuntimeInterfaceAsIntPtr : Guid * Guid -> nativeint
[<System.Obsolete("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0019", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member GetRuntimeInterfaceAsIntPtr : Guid * Guid -> nativeint
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Security.SecurityCritical>]
static member GetRuntimeInterfaceAsIntPtr : Guid * Guid -> nativeint
Public Shared Function GetRuntimeInterfaceAsIntPtr (clsid As Guid, riid As Guid) As IntPtr

매개 변수

clsid
Guid

원하는 클래스의 식별자입니다.

riid
Guid

원하는 인터페이스의 식별자입니다.

반환

IntPtr

nativeint

요청된 인터페이스에 대한 관리되지 않는 포인터입니다.

특성

예외

.NET Core 및 .NET 5+ 전용: 모든 경우

설명

다음 표는 clsidriid에 대해 지원되는 조합을 보여 줍니다.

clsid riid
CLSID_CorMetaDataDispenser IID_IMetaDataDispenser, IID_IMetaDataDispenserEx
CLSID_CorMetaDataDispenserRuntime IID_IMetaDataDispenser, IID_IMetaDataDispenserEx
CLSID_CorRuntimeHost IID_CorRuntimeHost
CLSID_CLRRuntimeHost IID_CLRRuntimeHost(.NET Framework 4에서 제공하는 공용 언어 런타임에는 유효하지 않음) IID_CLRRuntimeHost3
CLSID_TypeNameFactory IID_TypeNameFactory
CLSID_CLRStrongName IID_CLRStrongName

GetRuntimeInterfaceAsIntPtr 는 메서드와 GetRuntimeInterfaceAsObject 비슷합니다.

적용 대상