-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
WindowsRuntimeMarshal.xml
356 lines (348 loc) · 25.1 KB
/
WindowsRuntimeMarshal.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<Type Name="WindowsRuntimeMarshal" FullName="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal">
<TypeSignature Language="C#" Value="public static class WindowsRuntimeMarshal" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit WindowsRuntimeMarshal extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal" />
<TypeSignature Language="VB.NET" Value="Public Class WindowsRuntimeMarshal" />
<TypeSignature Language="F#" Value="type WindowsRuntimeMarshal = class" />
<TypeSignature Language="C++ CLI" Value="public ref class WindowsRuntimeMarshal abstract sealed" />
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="mscorlib" FromVersion="4.0.0.0" To="System.Runtime.InteropServices.WindowsRuntime" ToVersion="0.0.0.0" FrameworkAlternate="dotnet-uwp-10.0" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides helper methods for marshaling data between the .NET Framework and the Windows Runtime.</summary>
<remarks>To be added.</remarks>
<forInternalUseOnly />
</Docs>
<Members>
<Member MemberName="AddEventHandler<T>">
<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);" />
<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" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.AddEventHandler``1(System.Func{``0,System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken},System.Action{System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken},``0)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub AddEventHandler(Of T) (addMethod As Func(Of T, EventRegistrationToken), removeMethod As Action(Of EventRegistrationToken), handler As T)" />
<MemberSignature Language="F#" Value="static member AddEventHandler : Func<'T, System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> * Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> * 'T -> unit" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.AddEventHandler (addMethod, removeMethod, handler)" />
<MemberSignature Language="C++ CLI" Value="public:
generic <typename T>
 static void AddEventHandler(Func<T, System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ addMethod, Action<System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ removeMethod, T handler);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="addMethod" Type="System.Func<T,System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
<Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
<Parameter Name="handler" Type="T" />
</Parameters>
<Docs>
<typeparam name="T">The type of the delegate that represents the event handler.</typeparam>
<param name="addMethod">A delegate that represents the method that adds event handlers to the Windows Runtime event.</param>
<param name="removeMethod">A delegate that represents the method that removes event handlers from the Windows Runtime event.</param>
<param name="handler">A delegate the represents the event handler that is added.</param>
<summary>Adds the specified event handler to a Windows Runtime event.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="addMethod" /> is <see langword="null" />.
-or-
<paramref name="removeMethod" /> is <see langword="null" />.</exception>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="FreeHString">
<MemberSignature Language="C#" Value="public static void FreeHString (IntPtr ptr);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void FreeHString(native int ptr) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.FreeHString(System.IntPtr)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub FreeHString (ptr As IntPtr)" />
<MemberSignature Language="F#" Value="static member FreeHString : nativeint -> unit" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.FreeHString ptr" />
<MemberSignature Language="C++ CLI" Value="public:
 static void FreeHString(IntPtr ptr);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ptr" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="ptr">The address of the [HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451) to free.</param>
<summary>Frees the specified Windows Runtime[HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451).</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.PlatformNotSupportedException">The Windows Runtime is not supported on the current version of the operating system.</exception>
<forInternalUseOnly />
<altmember cref="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.StringToHString(System.String)" />
</Docs>
</Member>
<Member MemberName="GetActivationFactory">
<MemberSignature Language="C#" Value="public static System.Runtime.InteropServices.WindowsRuntime.IActivationFactory GetActivationFactory (Type type);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Runtime.InteropServices.WindowsRuntime.IActivationFactory GetActivationFactory(class System.Type type) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.GetActivationFactory(System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetActivationFactory (type As Type) As IActivationFactory" />
<MemberSignature Language="F#" Value="static member GetActivationFactory : Type -> System.Runtime.InteropServices.WindowsRuntime.IActivationFactory" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.GetActivationFactory type" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Runtime::InteropServices::WindowsRuntime::IActivationFactory ^ GetActivationFactory(Type ^ type);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Runtime.InteropServices.WindowsRuntime.IActivationFactory</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="System.Type" />
</Parameters>
<Docs>
<param name="type">The Windows Runtime type to get the activation factory interface for.</param>
<summary>Returns an object that implements the activation factory interface for the specified Windows Runtime type.</summary>
<returns>An object that implements the activation factory interface.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
In addition to the exceptions in the Exceptions section, any `HRESULT` other than `S_OK` that is returned by the underlying factory method will be marshaled as an exception.
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="type" /> does not represent a Windows Runtime type (that is, belonging to the Windows Runtime itself or defined in a Windows Runtime component).
-or-
The object specified for <paramref name="type" /> was not provided by the common language runtime type system.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="type" /> is <see langword="null" />.</exception>
<exception cref="T:System.TypeLoadException">The specified Windows Runtime class is not properly registered. For example, the .winmd file was located, but the Windows Runtime failed to locate the implementation.</exception>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="PtrToStringHString">
<MemberSignature Language="C#" Value="public static string PtrToStringHString (IntPtr ptr);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig string PtrToStringHString(native int ptr) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.PtrToStringHString(System.IntPtr)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function PtrToStringHString (ptr As IntPtr) As String" />
<MemberSignature Language="F#" Value="static member PtrToStringHString : nativeint -> string" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.PtrToStringHString ptr" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::String ^ PtrToStringHString(IntPtr ptr);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ptr" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="ptr">An unmanaged pointer to the [HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451) to copy.</param>
<summary>Returns a managed string that contains a copy of the specified Windows Runtime[HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451).</summary>
<returns>A managed string that contains a copy of the <see href="https://learn.microsoft.com/windows/desktop/WinRT/hstring">HSTRING</see> if <paramref name="ptr" /> is not <see cref="F:System.IntPtr.Zero" />; otherwise, <see cref="F:System.String.Empty" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.PlatformNotSupportedException">The Windows Runtime is not supported on the current version of the operating system.</exception>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="RemoveAllEventHandlers">
<MemberSignature Language="C#" Value="public static void RemoveAllEventHandlers (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void RemoveAllEventHandlers(class System.Action`1<valuetype System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.RemoveAllEventHandlers(System.Action{System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken})" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub RemoveAllEventHandlers (removeMethod As Action(Of EventRegistrationToken))" />
<MemberSignature Language="F#" Value="static member RemoveAllEventHandlers : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> -> unit" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.RemoveAllEventHandlers removeMethod" />
<MemberSignature Language="C++ CLI" Value="public:
 static void RemoveAllEventHandlers(Action<System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ removeMethod);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
</Parameters>
<Docs>
<param name="removeMethod">A delegate that represents the method that removes event handlers from the Windows Runtime event.</param>
<summary>Removes all the event handlers that can be removed by using the specified method.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="removeMethod" /> is <see langword="null" />.</exception>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="RemoveEventHandler<T>">
<MemberSignature Language="C#" Value="public static void RemoveEventHandler<T> (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler);" />
<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" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.RemoveEventHandler``1(System.Action{System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken},``0)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub RemoveEventHandler(Of T) (removeMethod As Action(Of EventRegistrationToken), handler As T)" />
<MemberSignature Language="F#" Value="static member RemoveEventHandler : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> * 'T -> unit" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.RemoveEventHandler (removeMethod, handler)" />
<MemberSignature Language="C++ CLI" Value="public:
generic <typename T>
 static void RemoveEventHandler(Action<System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ removeMethod, T handler);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="removeMethod" Type="System.Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken>" />
<Parameter Name="handler" Type="T" />
</Parameters>
<Docs>
<typeparam name="T">The type of the delegate that represents the event handler.</typeparam>
<param name="removeMethod">A delegate that represents the method that removes event handlers from the Windows Runtime event.</param>
<param name="handler">The event handler that is removed.</param>
<summary>Removes the specified event handler from a Windows Runtime event.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="removeMethod" /> is <see langword="null" />.</exception>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="StringToHString">
<MemberSignature Language="C#" Value="public static IntPtr StringToHString (string s);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig native int StringToHString(string s) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.StringToHString(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function StringToHString (s As String) As IntPtr" />
<MemberSignature Language="F#" Value="static member StringToHString : string -> nativeint" Usage="System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.StringToHString s" />
<MemberSignature Language="C++ CLI" Value="public:
 static IntPtr StringToHString(System::String ^ s);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.WindowsRuntime</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.3.0</AssemblyVersion>
<AssemblyVersion>4.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netcore-2.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<param name="s">The managed string to copy.</param>
<summary>Allocates a Windows Runtime[HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451) and copies the specified managed string to it.</summary>
<returns>An unmanaged pointer to the new <see href="https://learn.microsoft.com/windows/desktop/WinRT/hstring">HSTRING</see>, or <see cref="F:System.IntPtr.Zero" /> if <paramref name="s" /> is <see cref="F:System.String.Empty" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.FreeHString%2A> method to release the [HSTRING](https://go.microsoft.com/fwlink/p/?LinkId=246451) when you are done using it.
]]></format>
</remarks>
<exception cref="T:System.PlatformNotSupportedException">The Windows Runtime is not supported on the current version of the operating system.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is <see langword="null" />.</exception>
<forInternalUseOnly />
<altmember cref="M:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.FreeHString(System.IntPtr)" />
</Docs>
</Member>
</Members>
</Type>