-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
JSHost.xml
116 lines (116 loc) · 8.22 KB
/
JSHost.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
<Type Name="JSHost" FullName="System.Runtime.InteropServices.JavaScript.JSHost">
<TypeSignature Language="C#" Value="public static class JSHost" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit JSHost extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Runtime.InteropServices.JavaScript.JSHost" />
<TypeSignature Language="VB.NET" Value="Public Class JSHost" />
<TypeSignature Language="F#" Value="type JSHost = class" />
<TypeSignature Language="C++ CLI" Value="public ref class JSHost abstract sealed" />
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.JavaScript</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("browser")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("browser")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-8.0;net-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents the JavaScript host environment where the .NET runtime is currently operating.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="DotnetInstance">
<MemberSignature Language="C#" Value="public static System.Runtime.InteropServices.JavaScript.JSObject DotnetInstance { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Runtime.InteropServices.JavaScript.JSObject DotnetInstance" />
<MemberSignature Language="DocId" Value="P:System.Runtime.InteropServices.JavaScript.JSHost.DotnetInstance" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property DotnetInstance As JSObject" />
<MemberSignature Language="F#" Value="static member DotnetInstance : System.Runtime.InteropServices.JavaScript.JSObject" Usage="System.Runtime.InteropServices.JavaScript.JSHost.DotnetInstance" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Runtime::InteropServices::JavaScript::JSObject ^ DotnetInstance { System::Runtime::InteropServices::JavaScript::JSObject ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.JavaScript</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Runtime.InteropServices.JavaScript.JSObject</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns a proxy for the JavaScript module that contains the .NET runtime.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GlobalThis">
<MemberSignature Language="C#" Value="public static System.Runtime.InteropServices.JavaScript.JSObject GlobalThis { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Runtime.InteropServices.JavaScript.JSObject GlobalThis" />
<MemberSignature Language="DocId" Value="P:System.Runtime.InteropServices.JavaScript.JSHost.GlobalThis" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property GlobalThis As JSObject" />
<MemberSignature Language="F#" Value="static member GlobalThis : System.Runtime.InteropServices.JavaScript.JSObject" Usage="System.Runtime.InteropServices.JavaScript.JSHost.GlobalThis" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Runtime::InteropServices::JavaScript::JSObject ^ GlobalThis { System::Runtime::InteropServices::JavaScript::JSObject ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.JavaScript</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Runtime.InteropServices.JavaScript.JSObject</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns a proxy for the <see href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/globalThis">globalThis</see> JavaScript host object.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ImportAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<System.Runtime.InteropServices.JavaScript.JSObject> ImportAsync (string moduleName, string moduleUrl, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<class System.Runtime.InteropServices.JavaScript.JSObject> ImportAsync(string moduleName, string moduleUrl, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.InteropServices.JavaScript.JSHost.ImportAsync(System.String,System.String,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function ImportAsync (moduleName As String, moduleUrl As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JSObject)" />
<MemberSignature Language="F#" Value="static member ImportAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Runtime.InteropServices.JavaScript.JSObject>" Usage="System.Runtime.InteropServices.JavaScript.JSHost.ImportAsync (moduleName, moduleUrl, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime.InteropServices.JavaScript</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Runtime.InteropServices.JavaScript.JSObject></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="moduleName" Type="System.String" />
<Parameter Name="moduleUrl" Type="System.String" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="moduleName">Globally unique identifier of the ES6 module, which is used by <see cref="M:System.Runtime.InteropServices.JavaScript.JSImportAttribute.#ctor(System.String,System.String)" />.</param>
<param name="moduleUrl">The location of the module file.</param>
<param name="cancellationToken">The token to monitor for cancellation requests.</param>
<summary>Downloads and instantiates an ES6 module from the provided URL, via the JavaScript host's <see href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/import">dynamic import API</see>.
If a module with the provided <paramref name="moduleName" /> has previously been instantiated, it will be returned instead.</summary>
<returns>A proxy for the JavaScript object that contains the module's exports.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The cancellation token was canceled. This exception is stored into the returned task.</exception>
</Docs>
</Member>
</Members>
</Type>