コード例 #1
0
 internal static IntPtr GetActivationFactoryForType(Type type)
 {
     return(Marshal.GetComInterfaceForObject((object)WindowsRuntimeMarshal.GetManagedActivationFactory(type), typeof(IActivationFactory)));
 }
コード例 #2
0
 public object ActivateInstance(string activatableClassId)
 {
     return(WindowsRuntimeMarshal.GetManagedActivationFactory(this.LoadWinRTType(activatableClassId)).ActivateInstance());
 }
コード例 #3
0
 internal static Exception GetExceptionForHR(int hresult, Exception innerException)
 {
     return(WindowsRuntimeMarshal.GetExceptionForHR(hresult, innerException, (string)null));
 }