Skip to content

Commit 03a7311

Browse files
authored
Merge pull request #35461 from dotnet/main
2 parents 9559ea0 + 212fd10 commit 03a7311

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aspnetcore/release-notes/aspnetcore-10.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: rick-anderson
44
description: Learn about the new features in ASP.NET Core 10.0.
55
ms.author: riande
66
ms.custom: mvc
7-
ms.date: 4/11/2025
7+
ms.date: 4/12/2025
88
uid: aspnetcore-10
99
---
1010
# What's new in ASP.NET Core 10.0

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ The following synchronous methods are available on <xref:Microsoft.JSInterop.IJS
328328
```csharp
329329
var inProcRuntime = ((IJSInProcessRuntime)JSRuntime);
330330
var classRef = inProcRuntime.InvokeNew("jsInterop.TestClass", "Blazor!");
331-
var text = await classRef.GetValueAsync<string>("text");
332-
var textLength = await classRef.InvokeAsync<int>("getTextLength");
331+
var text = classRef.GetValue<string>("text");
332+
var textLength = classRef.Invoke<int>("getTextLength");
333333
```
334334

335335
* `GetValue<TValue>(string identifier)`: Reads the value of the specified JS property synchronously. The property can't be a `set`-only property. A <xref:Microsoft.JSInterop.JSException> is thrown if the property doesn't exist. The following example returns a value from a data property:

0 commit comments

Comments
 (0)