Marshal.CreateAggregatedObject 메서드
정의
오버로드
CreateAggregatedObject(IntPtr, Object) |
사용되지 않습니다.
지정된 COM 개체를 사용하여 관리되는 개체를 집계합니다.Aggregates a managed object with the specified COM object. |
CreateAggregatedObject<T>(IntPtr, T) |
[.NET Framework 4.5.1 이상 버전에서 지원됨][Supported in the .NET Framework 4.5.1 and later versions] 지정된 COM 개체를 사용하여 지정된 형식의 관리되는 개체를 집계합니다.Aggregates a managed object of the specified type with the specified COM object. |
CreateAggregatedObject(IntPtr, Object)
주의
CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518
지정된 COM 개체를 사용하여 관리되는 개체를 집계합니다.Aggregates a managed object with the specified COM object.
public:
static IntPtr CreateAggregatedObject(IntPtr pOuter, System::Object ^ o);
[System.Obsolete("CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject<T>(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518")]
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[<System.Obsolete("CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject<T>(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518")>]
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
static member CreateAggregatedObject : nativeint * obj -> nativeint
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
Public Shared Function CreateAggregatedObject (pOuter As IntPtr, o As Object) As IntPtr
매개 변수
- pOuter
- IntPtr
외부 IUnknown
포인터입니다.The outer IUnknown
pointer.
- o
- Object
집계할 개체입니다.An object to aggregate.
반환
관리되는 개체의 내부 IUnknown
포인터입니다.The inner IUnknown
pointer of the managed object.
- 특성
예외
o
는 Windows 런타임 개체입니다.o
is a Windows Runtime object.
설명
CreateAggregatedObject메서드는 지정 된 외부 포인터를 사용 하 여 관리 되는 개체의 내부 관리 되는 포인터를 집계 한 다음 관리 되는 개체의 내부 IUnknown 포인터를 반환 합니다.The CreateAggregatedObject method aggregates the inner managed pointer of a managed object with the specified outer pointer, and then returns an inner IUnknown pointer of the managed object.
적용 대상
CreateAggregatedObject<T>(IntPtr, T)
[.NET Framework 4.5.1 이상 버전에서 지원됨][Supported in the .NET Framework 4.5.1 and later versions]
지정된 COM 개체를 사용하여 지정된 형식의 관리되는 개체를 집계합니다.Aggregates a managed object of the specified type with the specified COM object.
public:
generic <typename T>
static IntPtr CreateAggregatedObject(IntPtr pOuter, T o);
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * 'T -> nativeint
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member CreateAggregatedObject : nativeint * 'T -> nativeint
static member CreateAggregatedObject : nativeint * 'T -> nativeint
Public Shared Function CreateAggregatedObject(Of T) (pOuter As IntPtr, o As T) As IntPtr
형식 매개 변수
- T
집계할 관리되는 개체의 형식입니다.The type of the managed object to aggregate.
매개 변수
- o
- T
집계할 관리되는 개체입니다.The managed object to aggregate.
반환
관리되는 개체의 내부 IUnknown 포인터입니다.The inner IUnknown pointer of the managed object.
- 특성
예외
o
는 Windows 런타임 개체입니다.o
is a Windows Runtime object.
설명
메서드는 지정 된 CreateAggregatedObject 외부 포인터를 사용 하 여 지정 된 형식의 관리 되는 개체에 대 한 내부 관리 되는 포인터를 집계 하 고 관리 되는 개체의 내부 IUnknown 포인터를 반환 합니다.The CreateAggregatedObject method aggregates the inner managed pointer of a managed object of a specified type with the specified outer pointer, and returns an inner IUnknown pointer of the managed object.