Skip to content

Commit 0831cb5

Browse files
committed
Address copilot suggestion and remove vb sample
1 parent ebf9e9f commit 0831cb5

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

hub/apps/develop/launch/handle-uri-activation.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,6 @@ public partial class App
9797
}
9898
```
9999

100-
```vb
101-
Protected Overrides Sub OnActivated(ByVal args As Windows.ApplicationModel.Activation.IActivatedEventArgs)
102-
If args.Kind = ActivationKind.Protocol Then
103-
ProtocolActivatedEventArgs eventArgs = args As ProtocolActivatedEventArgs
104-
105-
' TODO: Handle URI activation
106-
' The received URI is eventArgs.Uri.AbsoluteUri
107-
End If
108-
End Sub
109-
```
110-
111100
```cppwinrt
112101
void App::OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs const& args)
113102
{

hub/apps/develop/launch/launch-default-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ First create a [System.Uri](/dotnet/api/system.uri) object to represent the URI,
5656
private async void launchURI_Click(object sender, RoutedEventArgs e)
5757
{
5858
// The URI to launch
59-
var uriBing = new Uri(@"http://www.bing.com");
59+
var bingUri = new Uri(@"https://www.bing.com");
6060

6161
// Launch the URI
62-
var success = await Windows.System.Launcher.LaunchUriAsync(uriBing);
62+
var success = await Windows.System.Launcher.LaunchUriAsync(bingUri);
6363

6464
if (success)
6565
{

0 commit comments

Comments
 (0)