You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/whats-new/obsolete-members.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
16
16
## mscorlib.dll
17
17
18
18
> [!div class="mx-tdBreakAll"]
19
+
>
19
20
> |Type|Member|Message|
20
21
> |----------|------------|-------------|
21
22
> |<xref:Microsoft.Win32.Registry?displayProperty=nameWithType>|<xref:Microsoft.Win32.Registry.DynData>|The <xref:Microsoft.Win32.Registry.DynData> registry key only works on Win9x, which is no longer supported by the CLR. On NT-based operating systems, use the <xref:Microsoft.Win32.Registry.PerformanceData?displayProperty=nameWithType> registry key or the <xref:Microsoft.VisualBasic.MyServices.RegistryProxy.PerformanceData%2A?displayProperty=nameWithType> registry proxy instead.|
@@ -182,6 +183,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
182
183
## PresentationCore.dll
183
184
184
185
> [!div class="mx-tdBreakAll"]
186
+
>
185
187
> |Type|Member|Message|
186
188
> |----------|------------|-------------|
187
189
> |<xref:System.Windows.UIElement?displayProperty=nameWithType>|<xref:System.Windows.UIElement.BitmapEffect%2A>|Bitmap effects are deprecated and no longer function. Consider using <xref:System.Windows.Media.Effects.Effect?displayProperty=nameWithType> where appropriate instead.|
@@ -222,6 +224,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
222
224
## PresentationFramework.dll
223
225
224
226
> [!div class="mx-tdBreakAll"]
227
+
>
225
228
> |Type|Member|Message|
226
229
> |----------|------------|-------------|
227
230
> |<xref:System.Windows.Data.BindingListCollectionView?displayProperty=nameWithType>|<xref:System.Windows.Data.CollectionView.OnBeginChangeLogging%2A>|Replaced by <xref:System.Windows.Data.CollectionView.OnAllowsCrossThreadChangesChanged%2A?displayProperty=nameWithType>.|
@@ -232,6 +235,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
232
235
## System.Activities.dll
233
236
234
237
> [!div class="mx-tdBreakAll"]
238
+
>
235
239
> |Type|Member|Message|
236
240
> |----------|------------|-------------|
237
241
> |<xref:System.Activities.Debugger.XamlDebuggerXmlReader?displayProperty=nameWithType>|<xref:System.Activities.Debugger.XamlDebuggerXmlReader.%23ctor%28System.Xaml.XamlReader%2CSystem.Xaml.IXamlLineInfo%2CSystem.IO.TextReader%29>|First deprecated in the .NET Framework 4.5.<br /><br /> Don't use this constructor. Use <xref:System.Activities.Debugger.XamlDebuggerXmlReader.%23ctor%28System.IO.TextReader%29> or <xref:System.Activities.Debugger.XamlDebuggerXmlReader.%23ctor%28System.IO.TextReader%2CSystem.Xaml.XamlSchemaContext%29> instead.|
@@ -240,6 +244,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
240
244
## System.Activities.Presentation.dll
241
245
242
246
> [!div class="mx-tdBreakAll"]
247
+
>
243
248
> |Type|Member|Message|
244
249
> |----------|------------|-------------|
245
250
> |<xref:System.Activities.Presentation.DragDropHelper?displayProperty=nameWithType>|<xref:System.Activities.Presentation.DragDropHelper.DoDragMove%28System.Activities.Presentation.WorkflowViewElement%2CSystem.Windows.Point%29>|This method doesn't support dragging multiple items.|
@@ -255,6 +260,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
255
260
## System.Core.dll
256
261
257
262
> [!div class="mx-tdBreakAll"]
263
+
>
258
264
> |Type|Member|Message|
259
265
> |----------|------------|-------------|
260
266
> |<xref:System.Diagnostics.Eventing.Reader.StandardEventKeywords?displayProperty=nameWithType>|<xref:System.Diagnostics.Eventing.Reader.StandardEventKeywords.CorrelationHint>|First deprecated in the .NET Framework 4.5.<br /><br /> Incorrect value; use <xref:System.Diagnostics.Eventing.Reader.StandardEventKeywords.CorrelationHint2> instead.|
@@ -298,6 +304,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
298
304
## System.Data.dll
299
305
300
306
> [!div class="mx-tdBreakAll"]
307
+
>
301
308
> |Type|Member|Message|
302
309
> |----------|------------|-------------|
303
310
> |<xref:System.Data.DataSysDescriptionAttribute?displayProperty=nameWithType>|<xref:System.Data.DataSysDescriptionAttribute.%23ctor%2A>|<xref:System.Data.DataSysDescriptionAttribute> has been deprecated.|
@@ -320,6 +327,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
320
327
## System.Data.Entity.dll
321
328
322
329
> [!div class="mx-tdBreakAll"]
330
+
>
323
331
> |Type|Member|Message|
324
332
> |----------|------------|-------------|
325
333
> |<xref:System.Data.Metadata.Edm.AssociationSetEnd?displayProperty=nameWithType>|<xref:System.Data.Metadata.Edm.AssociationSetEnd.Role%2A>|This property is going away, Use the <xref:System.Data.Metadata.Edm.AssociationSetEnd.Name%2A?displayProperty=nameWithType> property instead.|
@@ -330,6 +338,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
330
338
## System.Data.OracleClient.dll
331
339
332
340
> [!div class="mx-tdBreakAll"]
341
+
>
333
342
> |Type|Member|Message|
334
343
> |----------|------------|-------------|
335
344
> |<xref:System.Data.OracleClient.OracleParameter?displayProperty=nameWithType>|<xref:System.Data.OracleClient.OracleParameter.Precision%2A>|<xref:System.Data.OracleClient.OracleParameter.Precision%2A> has been deprecated. Use the <xref:System.Math?displayProperty=nameWithType> classes to explicitly set the precision of a decimal.|
@@ -339,6 +348,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
339
348
## System.Design.dll
340
349
341
350
> [!div class="mx-tdBreakAll"]
351
+
>
342
352
> |Type|Member|Message|
343
353
> |----------|------------|-------------|
344
354
> |<xref:System.ComponentModel.Design.ComponentDesigner?displayProperty=nameWithType>|<xref:System.ComponentModel.Design.ComponentDesigner.InitializeNonDefault%2A>|This method has been deprecated. Use <xref:System.ComponentModel.Design.ComponentDesigner.InitializeExistingComponent%2A?displayProperty=nameWithType> instead.|
@@ -392,6 +402,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
392
402
## System.dll
393
403
394
404
> [!div class="mx-tdBreakAll"]
405
+
>
395
406
> |Type|Member|Message|
396
407
> |----------|------------|-------------|
397
408
> |<xref:Microsoft.CSharp.CSharpCodeProvider?displayProperty=nameWithType>|<xref:Microsoft.CSharp.CSharpCodeProvider.CreateCompiler%2A>|Callers should not use the <xref:System.CodeDom.Compiler.ICodeCompiler?displayProperty=nameWithType> interface and should instead use the methods directly on the <xref:System.CodeDom.Compiler.CodeDomProvider?displayProperty=nameWithType> class.|
@@ -504,6 +515,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
504
515
## System.Drawing.dll
505
516
506
517
> [!div class="mx-tdBreakAll"]
518
+
>
507
519
> |Type|Member|Message|
508
520
> |----------|------------|-------------|
509
521
> |<xref:System.Drawing.FontFamily?displayProperty=nameWithType>|<xref:System.Drawing.FontFamily.GetFamilies%2A>|Don't use the <xref:System.Drawing.FontFamily.GetFamilies%2A> method; use the <xref:System.Drawing.FontFamily.Families%2A?displayProperty=nameWithType> property instead.|
@@ -512,6 +524,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
512
524
## System.Messaging.dll
513
525
514
526
> [!div class="mx-tdBreakAll"]
527
+
>
515
528
> |Type|Member|Message|
516
529
> |----------|------------|-------------|
517
530
> |<xref:System.Messaging.MessageQueue?displayProperty=nameWithType>|<xref:System.Messaging.MessageQueue.GetEnumerator%2A>|This method returns a <xref:System.Messaging.MessageEnumerator?displayProperty=nameWithType> that implements the <xref:System.Messaging.MessageEnumerator.RemoveCurrent%2A?displayProperty=nameWithType> family of methods incorrectly. Use <xref:System.Messaging.MessageQueue.GetMessageEnumerator2%2A?displayProperty=nameWithType> instead.|
@@ -520,6 +533,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
520
533
## System.ServiceModel.dll
521
534
522
535
> [!div class="mx-tdBreakAll"]
536
+
>
523
537
> |Type|Member|Message|
524
538
> |----------|------------|-------------|
525
539
> |<xref:System.ServiceModel.BasicHttpBinding?displayProperty=nameWithType>|<xref:System.ServiceModel.BasicHttpBinding.EnableHttpCookieContainer%2A>|First deprecated in the .NET Framework 4.5.<br /><br /> This property is obsolete. To enable Http <xref:System.Net.CookieContainer>, use the <xref:System.ServiceModel.HttpBindingBase.AllowCookies%2A?displayProperty=nameWithType> property instead.|
@@ -532,6 +546,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
532
546
## System.ServiceModel.Discovery.dll
533
547
534
548
> [!div class="mx-tdBreakAll"]
549
+
>
535
550
> |Type|Member|Message|
536
551
> |----------|------------|-------------|
537
552
> |<xref:System.ServiceModel.Discovery.UdpAnnouncementEndpoint?displayProperty=nameWithType>|<xref:System.ServiceModel.Discovery.UdpAnnouncementEndpoint.TransportSettings%2A>|First deprecated in the .NET Framework 4.5.<br /><br /> The <xref:System.ServiceModel.Discovery.UdpAnnouncementEndpoint.TransportSettings%2A> property is obsolete. Consider using <xref:System.ServiceModel.Channels.UdpTransportBindingElement?displayProperty=nameWithType> for setting the transport properties.|
@@ -540,13 +555,15 @@ This article doesn't list the members of obsolete types. For a list of obsolete
540
555
## System.Web.DataVisualization.dll
541
556
542
557
> [!div class="mx-tdBreakAll"]
558
+
>
543
559
> |Type|Member|Message|
544
560
> |----------|------------|-------------|
545
561
> |<xref:System.Web.UI.DataVisualization.Charting.Chart?displayProperty=nameWithType>|<xref:System.Web.UI.DataVisualization.Charting.Chart.ViewStateData%2A>|<xref:System.Web.UI.DataVisualization.Charting.Chart.ViewStateData%2A> has been deprecated. Investigate <xref:System.Web.UI.Control.ViewState%2A?displayProperty=nameWithType> instead.|
546
562
547
563
## System.Web.dll
548
564
549
565
> [!div class="mx-tdBreakAll"]
566
+
>
550
567
> |Type|Member|Message|
551
568
> |----------|------------|-------------|
552
569
> |<xref:System.Web.HttpContext?displayProperty=nameWithType>|<xref:System.Web.HttpContext.GetAppConfig%2A>|The recommended alternative is <xref:System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection%2A?displayProperty=nameWithType> in System.Web.dll.|
@@ -582,13 +599,15 @@ This article doesn't list the members of obsolete types. For a list of obsolete
582
599
## System.Web.DynamicData.dll
583
600
584
601
> [!div class="mx-tdBreakAll"]
602
+
>
585
603
> |Type|Member|Message|
586
604
> |----------|------------|-------------|
587
605
> |<xref:System.Web.DynamicData.DynamicDataExtensions?displayProperty=nameWithType>|<xref:System.Web.DynamicData.DynamicDataExtensions.EnablePersistedSelection%2A>|Use the `EnablePersistedSelection` property on a databound control such as <xref:System.Web.UI.WebControls.GridView?displayProperty=nameWithType> or <xref:System.Web.UI.WebControls.ListView?displayProperty=nameWithType>.|
@@ -603,6 +622,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
603
622
## System.Web.Services.dll
604
623
605
624
> [!div class="mx-tdBreakAll"]
625
+
>
606
626
> |Type|Member|Message|
607
627
> |----------|------------|-------------|
608
628
> |<xref:System.Web.Services.Discovery.DiscoveryClientProtocol?displayProperty=nameWithType>|<xref:System.Web.Services.Discovery.DiscoveryClientProtocol.LoadExternals%2A>|This method will be removed from a future version. The method call is no longer required for resource discovery.|
@@ -611,6 +631,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
611
631
## System.Windows.Forms.dll
612
632
613
633
> [!div class="mx-tdBreakAll"]
634
+
>
614
635
> |Type|Member|Message|
615
636
> |----------|------------|-------------|
616
637
> |<xref:System.Windows.Forms.AccessibleStates?displayProperty=nameWithType>|<xref:System.Windows.Forms.AccessibleStates.Valid>|This enumeration value has been deprecated. There is no replacement.|
@@ -628,6 +649,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
628
649
## System.Xaml.dll
629
650
630
651
> [!div class="mx-tdBreakAll"]
652
+
>
631
653
> |Type|Member|Message|
632
654
> |----------|------------|-------------|
633
655
> |<xref:System.Windows.Markup.MarkupExtensionReturnTypeAttribute?displayProperty=nameWithType>|<xref:System.Windows.Markup.MarkupExtensionReturnTypeAttribute.ExpressionType%2A>|This isn't used by the XAML parser. See <xref:System.Windows.Markup.XamlSetMarkupExtensionAttribute?displayProperty=nameWithType>.|
@@ -636,6 +658,7 @@ This article doesn't list the members of obsolete types. For a list of obsolete
636
658
## System.Xml.dll
637
659
638
660
> [!div class="mx-tdBreakAll"]
661
+
>
639
662
> |Type|Member|Message|
640
663
> |----------|------------|-------------|
641
664
> |<xref:System.Xml.ValidationType?displayProperty=nameWithType>|<xref:System.Xml.ValidationType.Auto>|Validation type should be specified as <xref:System.Xml.ValidationType.DTD?displayProperty=nameWithType> or <xref:System.Xml.ValidationType.Schema?displayProperty=nameWithType>.|
@@ -662,13 +685,15 @@ The IEHost.dll and IEExec.exe assemblies have been removed from .NET Framework.
662
685
## ISymWrapper.dll
663
686
664
687
> [!div class="mx-tdBreakAll"]
688
+
>
665
689
> |Type|Member|Message|
666
690
> |----------|------------|-------------|
667
691
> |<xref:System.Diagnostics.SymbolStore.SymBinder?displayProperty=nameWithType>|<xref:System.Diagnostics.SymbolStore.SymBinder.GetReader%28System.Int32%2CSystem.String%2CSystem.String%29>|The recommended alternative is <xref:System.Diagnostics.SymbolStore.SymBinder.GetReader%28System.IntPtr%2CSystem.String%2CSystem.String%29?displayProperty=nameWithType>. <xref:System.Diagnostics.SymbolStore.ISymbolBinder1.GetReader%2A?displayProperty=nameWithType> takes the importer interface pointer as an <xref:System.IntPtr?displayProperty=nameWithType> instead of an <xref:System.Int32?displayProperty=nameWithType>, and thus works on both 32-bit and 64-bit architectures.|
@@ -679,6 +704,7 @@ The IEHost.dll and IEExec.exe assemblies have been removed from .NET Framework.
679
704
## Microsoft.Build.Engine.dll
680
705
681
706
> [!div class="mx-tdBreakAll"]
707
+
>
682
708
> |Type|Member|Message|
683
709
> |----------|------------|-------------|
684
710
> |<xref:Microsoft.Build.BuildEngine.Engine?displayProperty=nameWithType>|<xref:Microsoft.Build.BuildEngine.Engine.BinPath%2A>|Avoid setting <xref:Microsoft.Build.BuildEngine.Engine.BinPath%2A>. If you were simply passing in the .NET Framework location as the <xref:Microsoft.Build.BuildEngine.Engine.BinPath%2A>, no other action is necessary. Otherwise, define Toolsets instead in the registry or config file, or by adding elements to the Engine's <xref:Microsoft.Build.BuildEngine.ToolsetCollection?displayProperty=nameWithType>, to use a custom <xref:Microsoft.Build.BuildEngine.Engine.BinPath%2A>.|
@@ -687,27 +713,31 @@ The IEHost.dll and IEExec.exe assemblies have been removed from .NET Framework.
687
713
## Microsoft.Build.Framework.dll
688
714
689
715
> [!div class="mx-tdBreakAll"]
716
+
>
690
717
> |Type|Member|Message|
691
718
> |----------|------------|-------------|
692
719
> |<xref:Microsoft.Build.Framework.XamlTypes.ContentType?displayProperty=nameWithType>|<xref:Microsoft.Build.Framework.XamlTypes.ContentType.ItemGroupName%2A>|First deprecated in the .NET Framework 4.5.<br /><br /> Use of this member generates a compiler error.<br /><br /> Use the <xref:Microsoft.Build.Framework.XamlTypes.ContentType.ItemType%2A?displayProperty=nameWithType> property instead.|
693
720
694
721
## Microsoft.Build.Utilities.v4.0.dll
695
722
696
723
> [!div class="mx-tdBreakAll"]
724
+
>
697
725
> |Type|Member|Message|
698
726
> |----------|------------|-------------|
699
727
> |<xref:Microsoft.Build.Utilities.ToolTask?displayProperty=nameWithType>|<xref:Microsoft.Build.Utilities.ToolTask.EnvironmentOverride%2A>|Use the <xref:Microsoft.Build.Utilities.ToolTask.EnvironmentVariables%2A?displayProperty=nameWithType> property.|
700
728
701
729
## Microsoft.Data.Entity.Build.Tasks.dll
702
730
703
731
> [!div class="mx-tdBreakAll"]
732
+
>
704
733
> |Type|Member|Message|
705
734
> |----------|------------|-------------|
706
735
> |`Microsoft.Data.Entity.Build.Tasks.EntityDeploy`|`EntityDataModelEmbeddedResources`|First deprecated in the .NET Framework 4.5.<br /><br /> Used only for version 3.5 backward compatibility.|
707
736
708
737
## Microsoft.VisualBasic.dll
709
738
710
739
> [!div class="mx-tdBreakAll"]
740
+
>
711
741
> |Type|Member|Message|
712
742
> |----------|------------|-------------|
713
743
> |<xref:Microsoft.VisualBasic.FileSystem?displayProperty=nameWithType>|<xref:Microsoft.VisualBasic.FileSystem.FilePut%28System.Object%2CSystem.Object%2CSystem.Object%29>|This member has been deprecated. Use <xref:Microsoft.VisualBasic.FileSystem.FilePutObject%2A?displayProperty=nameWithType> to write <xref:System.Object> types, or coerce `FileNumber` and `RecordNumber` to <xref:System.Int32> for writing non-object types.|
Copy file name to clipboardExpand all lines: docs/fundamentals/code-analysis/quality-rules/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ ms.date: 01/31/2024
12
12
The following table lists code quality analysis rules.
13
13
14
14
> [!div class="mx-tdCol2BreakAll"]
15
+
>
15
16
> | Rule ID and warning | Description |
16
17
> | ------------------- | ----------- |
17
18
> |[CA1000: Do not declare static members on generic types](ca1000.md)| When a static member of a generic type is called, the type argument must be specified for the type. When a generic instance member that does not support inference is called, the type argument must be specified for the member. In these two cases, the syntax for specifying the type argument is different and easily confused. |
0 commit comments