Skip to content

Commit 9c002f0

Browse files
authored
Batch 19 sample fixes (dotnet#4679)
1 parent f7b7891 commit 9c002f0

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

samples/snippets/cpp/VS_Snippets_CLR_System/system.Exception.HResult/CPP/hresult.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ namespace NDP_UE_CPP
5454

5555
int main()
5656
{
57-
Console::WriteLine( "This example of Exception::HResult "
58-
"generates the following output.\n" );
5957
NDP_UE_CPP::DivideBy0();
6058
}
6159

samples/snippets/cpp/VS_Snippets_CLR_System/system.Exception.Properties/CPP/properties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace NDP_UE_CPP
1818
LogTableOverflowException( String^ auxMessage, Exception^ inner )
1919
: Exception( String::Format( "{0} - {1}", overflowMessage, auxMessage ), inner )
2020
{
21-
this->HelpLink = "http://msdn.microsoft.com";
21+
this->HelpLink = "https://docs.microsoft.com";
2222
this->Source = "Exception_Class_Samples";
2323
}
2424

@@ -106,7 +106,7 @@ Message ---
106106
The log table has overflowed. - Record "Log record number 5" was not logged.
107107
108108
HelpLink ---
109-
http://msdn.microsoft.com
109+
https://docs.microsoft.com
110110
111111
Source ---
112112
Exception_Class_Samples

samples/snippets/csharp/VS_Snippets_CLR_System/system.Exception.HResult/CS/hresult.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ class HResultDemo
2323
{
2424
public static void Main()
2525
{
26-
Console.WriteLine(
27-
"This example of Exception.HResult " +
28-
"generates the following output.\n" );
29-
3026
// This function forces a division by 0 and throws
3127
// a second exception.
3228
try

samples/snippets/csharp/VS_Snippets_CLR_System/system.Exception.Properties/CS/properties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public LogTableOverflowException(
1616
base( String.Format( "{0} - {1}",
1717
overflowMessage, auxMessage ), inner )
1818
{
19-
this.HelpLink = "http://msdn.microsoft.com";
19+
this.HelpLink = "https://docs.microsoft.com";
2020
this.Source = "Exception_Class_Samples";
2121
}
2222
}
@@ -100,7 +100,7 @@ generates the following output.
100100
The log table has overflowed. - Record "Log record number 5" was not logged.
101101
102102
HelpLink ---
103-
http://msdn.microsoft.com
103+
https://docs.microsoft.com
104104
105105
Source ---
106106
Exception_Class_Samples

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Exception.HResult/VB/hresult.vb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ Namespace NDP_UE_VB
2121
Module HResultDemo
2222

2323
Sub Main()
24-
Console.WriteLine( _
25-
"This example of Exception.HResult " & _
26-
"generates the following output." & vbCrLf )
27-
2824
' This function forces a division by 0 and throws
2925
' a second exception.
3026
Try

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Exception.Properties/VB/properties.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Namespace NDP_UE_VB
1515
MyBase.New( String.Format( "{0} - {1}", _
1616
overflowMessage, auxMessage ), inner )
1717

18-
Me.HelpLink = "http://msdn.microsoft.com"
18+
Me.HelpLink = "https://docs.microsoft.com"
1919
Me.Source = "Exception_Class_Samples"
2020

2121
End Sub
@@ -101,7 +101,7 @@ End Namespace ' NDP_UE_VB
101101
' The log table has overflowed. - Record "Log record number 5" was not logged.
102102
'
103103
' HelpLink ---
104-
' http://msdn.microsoft.com
104+
' https://docs.microsoft.com
105105
'
106106
' Source ---
107107
' Exception_Class_Samples

0 commit comments

Comments
 (0)