1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="WindowsRuntimeMarshal" FullName="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal">
3 <TypeSignature Language="C#" Value="public static class WindowsRuntimeMarshal" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit WindowsRuntimeMarshal extends System.Object" />
6 <AssemblyName>mscorlib</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.Object</BaseTypeName>
14 <remarks>To be added.</remarks>
16 <attribution license="cc4" from="Microsoft" modified="false" />
17 <para>Provides helper methods for marshaling data between the .NET Framework and the wrt.</para>
21 <Member MemberName="AddEventHandler<T>">
22 <MemberSignature Language="C#" Value="public static void AddEventHandler<T> (Func<T,System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> addMethod, Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler);" />
23 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AddEventHandler<T>(class System.Func`2<!!T, valuetype System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> addMethod, class System.Action`1<valuetype System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, !!T handler) cil managed" />
24 <MemberType>Method</MemberType>
26 <AssemblyVersion>4.0.0.0</AssemblyVersion>
29 <ReturnType>System.Void</ReturnType>
32 <TypeParameter Name="T" />
35 <Parameter Name="addMethod" Type="System.Func<T,System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
36 <Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
37 <Parameter Name="handler" Type="T" />
40 <typeparam name="T">To be added.</typeparam>
41 <param name="addMethod">To be added.</param>
42 <param name="removeMethod">To be added.</param>
43 <param name="handler">To be added.</param>
44 <summary>To be added.</summary>
45 <remarks>To be added.</remarks>
48 <Member MemberName="FreeHString">
49 <MemberSignature Language="C#" Value="public static void FreeHString (IntPtr ptr);" />
50 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void FreeHString(native int ptr) cil managed" />
51 <MemberType>Method</MemberType>
53 <AssemblyVersion>4.0.0.0</AssemblyVersion>
56 <ReturnType>System.Void</ReturnType>
59 <Parameter Name="ptr" Type="System.IntPtr" />
62 <remarks>To be added.</remarks>
64 <attribution license="cc4" from="Microsoft" modified="false" />
65 <para>Frees the specified wrt <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see>. </para>
68 <attribution license="cc4" from="Microsoft" modified="false" />The address of the <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see> to free.</param>
71 <Member MemberName="GetActivationFactory">
72 <MemberSignature Language="C#" Value="public static System.Runtime.InteropServices.WindowsRuntime.IActivationFactory GetActivationFactory (Type type);" />
73 <MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Runtime.InteropServices.WindowsRuntime.IActivationFactory GetActivationFactory(class System.Type type) cil managed" />
74 <MemberType>Method</MemberType>
76 <AssemblyVersion>4.0.0.0</AssemblyVersion>
79 <ReturnType>System.Runtime.InteropServices.WindowsRuntime.IActivationFactory</ReturnType>
82 <Parameter Name="type" Type="System.Type" />
85 <returns>To be added.</returns>
87 <attribution license="cc4" from="Microsoft" modified="false" />
88 <para>In addition to the exceptions in the Exceptions section, any <unmanagedCodeEntityReference>HRESULT</unmanagedCodeEntityReference> other than <unmanagedCodeEntityReference>S_OK</unmanagedCodeEntityReference> that is returned by the underlying factory method will be marshaled as an exception. </para>
91 <attribution license="cc4" from="Microsoft" modified="false" />
92 <para>Returns an object that implements the activation factory interface for the specified wrt type. </para>
95 <attribution license="cc4" from="Microsoft" modified="false" />The wrt type to get the activation factory interface for. </param>
98 <Member MemberName="PtrToStringHString">
99 <MemberSignature Language="C#" Value="public static string PtrToStringHString (IntPtr ptr);" />
100 <MemberSignature Language="ILAsm" Value=".method public static hidebysig string PtrToStringHString(native int ptr) cil managed" />
101 <MemberType>Method</MemberType>
103 <AssemblyVersion>4.0.0.0</AssemblyVersion>
106 <ReturnType>System.String</ReturnType>
109 <Parameter Name="ptr" Type="System.IntPtr" />
112 <returns>To be added.</returns>
113 <remarks>To be added.</remarks>
115 <attribution license="cc4" from="Microsoft" modified="false" />
116 <para>Returns a managed string that contains a copy of the specified wrt <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see>. </para>
119 <attribution license="cc4" from="Microsoft" modified="false" />An unmanaged pointer to the <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see> to copy. </param>
122 <Member MemberName="RemoveAllEventHandlers">
123 <MemberSignature Language="C#" Value="public static void RemoveAllEventHandlers (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod);" />
124 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void RemoveAllEventHandlers(class System.Action`1<valuetype System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod) cil managed" />
125 <MemberType>Method</MemberType>
127 <AssemblyVersion>4.0.0.0</AssemblyVersion>
130 <ReturnType>System.Void</ReturnType>
133 <Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
136 <param name="removeMethod">To be added.</param>
137 <summary>To be added.</summary>
138 <remarks>To be added.</remarks>
141 <Member MemberName="RemoveEventHandler<T>">
142 <MemberSignature Language="C#" Value="public static void RemoveEventHandler<T> (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler);" />
143 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void RemoveEventHandler<T>(class System.Action`1<valuetype System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, !!T handler) cil managed" />
144 <MemberType>Method</MemberType>
146 <AssemblyVersion>4.0.0.0</AssemblyVersion>
149 <ReturnType>System.Void</ReturnType>
152 <TypeParameter Name="T" />
155 <Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
156 <Parameter Name="handler" Type="T" />
159 <typeparam name="T">To be added.</typeparam>
160 <param name="removeMethod">To be added.</param>
161 <param name="handler">To be added.</param>
162 <summary>To be added.</summary>
163 <remarks>To be added.</remarks>
166 <Member MemberName="StringToHString">
167 <MemberSignature Language="C#" Value="public static IntPtr StringToHString (string s);" />
168 <MemberSignature Language="ILAsm" Value=".method public static hidebysig native int StringToHString(string s) cil managed" />
169 <MemberType>Method</MemberType>
171 <AssemblyVersion>4.0.0.0</AssemblyVersion>
174 <ReturnType>System.IntPtr</ReturnType>
177 <Parameter Name="s" Type="System.String" />
180 <returns>To be added.</returns>
182 <attribution license="cc4" from="Microsoft" modified="false" />
183 <para>Use the <see cref="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.FreeHString(System.IntPtr)" /> method to release the <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see> when you are done using it. </para>
186 <attribution license="cc4" from="Microsoft" modified="false" />
187 <para>Allocates a wrt <see cref="http://go.microsoft.com/fwlink/p/?LinkId=246451">HSTRING</see> and copies the specified managed string to it. </para>
190 <attribution license="cc4" from="Microsoft" modified="false" />The managed string to copy. </param>