Obsolete Members in the .NET Framework 4
The following tables list the type members that have been declared obsolete based on the assembly in which they are found. The tables are organized as follows:
Obsolete Members in System Assemblies
mscorlib.dll
System.Core.dll
System.Data.dll
System.Data.Entity.dll
System.Data.OracleClient.dll
System.Design.dll
System.dll
System.Drawing.dll
System.Messaging.dll
System.ServiceModel.dll
System.Web.DataVisualization.dll
System.Web.dll
System.Web.DynamicData.dll
System.Web.Extensions.dll
System.Web.Services.dll
System.Windows.Forms.dll
System.Xaml.dll
System.Xml.dll
Obsolete Members in Microsoft Assemblies
IEHost.dll and IEExec.exe
ISymWrapper.dll
Microsoft.Build.Conversion.v4.0.dll
Microsoft.Build.Engine.dll
Microsoft.VisualBasic.dll
Obsolete Members in System Assemblies
The following tables list the obsolete members in system assemblies. These assemblies are used for general-purpose application development that targets the .NET Framework.
mscorlib.dll
Type |
Member |
Message |
---|---|---|
The provider argument is not used. Please use Enum.ToString(). |
||
The provider argument is not used. Please use Enum.ToString(). |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Activator.CreateInstance which does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Activator.CreateInstanceFrom which does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use Evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Activator.CreateInstanceFrom that does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Activator.CreateInstance that does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.CreateInstanceFromAndUnwrap that does not take an System.Security.Policy.Evidence parameter. |
||
ExecuteAssembly(String, Evidence, String[], Byte[], AssemblyHashAlgorithm) |
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssembly that does not take an System.Security.Policy.Evidence parameter. |
|
AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssemblyByName which does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.Load which does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssembly which does not take an System.Security.Policy.Evidence parameter. |
||
AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.CreateInstanceFromAndUnwrap which does not take an System.Security.Policy.Evidence parameter. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.Load which does not take an System.Security.Policy.Evidence parameter. |
||
ClearShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.Load which does not take an System.Security.Policy.Evidence parameter. |
||
SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.CreateInstance that does not take an System.Security.Policy.Evidence parameter. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
SetShadowCopyFiles has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyFiles instead. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssemblyByName that does not take an System.Security.Policy.Evidence parameter. |
||
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) |
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
|
ClearPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssembly which does not take an System.Security.Policy.Evidence parameter. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) |
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.DefineDynamicAssembly that does not take an System.Security.Policy.Evidence parameter. |
|
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.CreateInstanceFrom that does not take an System.Security.Policy.Evidence parameter. |
||
GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the Thread.ManagedThreadId property. |
||
SetDynamicBase has been deprecated. Please investigate the use of AppDomainSetup.DynamicBase instead. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of AppDomain.ExecuteAssemblyByName that does not take an System.Security.Policy.Evidence parameter. |
||
This method has been deprecated. Please use Assembly.Load instead. |
||
This method has been deprecated. Please use Assembly.Load instead. |
||
Use the WaitHandle.SafeWaitHandle property instead. |
||
This property is not 64-bit compatible. Use Overlapped.EventHandleIntPtr instead. |
||
This method is not safe. Use Overlapped.Pack(IOCompletionCallback, Object) instead. |
||
Overlapped(Int32, Int32, Int32, IAsyncResult) |
This constructor is not 64-bit compatible. Use the Overlapped.Overlapped(Int32, Int32, IntPtr, IAsyncResult) constructor that takes an System.IntPtr for the event handle. |
|
This method is not safe. Use Overlapped.UnsafePack(IOCompletionCallback, Object) instead. |
||
Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex , Event, and Semaphore, to synchronize threads or protect resources. |
||
SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class. |
||
GetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class. |
||
The ApartmentState property has been deprecated. Use Thread.GetApartmentState, Thread.SetApartmentState or Thread.TrySetApartmentState instead. |
||
Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex , Event, and Semaphore, to synchronize threads or protect resources. |
||
BindHandle(IntPtr) has been deprecated. Please use ThreadPool.BindHandle(SafeHandle) instead. |
||
Hashtable(IDictionary, Single, IHashCodeProvider, IComparer) |
Please use Hashtable.Hashtable(IDictionary, Single, IEqualityComparer) instead. |
|
Hashtable(IDictionary, IHashCodeProvider, IComparer) |
Please use Hashtable.Hashtable(IDictionary, IEqualityComparer) instead. |
|
Hashtable(Int32, IHashCodeProvider, IComparer) |
Please use Hashtable.Hashtable(Int32, IEqualityComparer) instead. |
|
Hashtable(IHashCodeProvider, IComparer) |
Please use Hashtable.Hashtable(IEqualityComparer) instead. |
|
Hashtable(Int32, Single, IHashCodeProvider, IComparer) |
Please use Hashtable.Hashtable(Int32, Single, IEqualityComparer) instead. |
|
Debugger |
Do not create instances of the Debugger class. Call the static methods directly on this type instead. |
|
The recommended alternative is ISymbolBinder1.GetReader, which takes the importer interface pointer as an IntPtr instead of an Int32, and thus works on both 32-bit and 64-bit architectures. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.Load that does not take an System.Security.Policy.Evidence parameter. |
||
This method has been deprecated. Please use Assembly.Load instead. |
||
This method has been deprecated. Please use Assembly.Load instead. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.Load that does not take an System.Security.Policy.Evidence parameter. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.Load that does not take an System.Security.Policy.Evidence parameter. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.LoadFrom which does not take an System.Security.Policy.Evidence parameter. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.LoadFile which does not take an System.Security.Policy.Evidence parameter. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of Assembly.LoadFrom which does not take an System.Security.Policy.Evidence parameter. |
||
AssemblyFlagsAttribute(Int32) |
This constructor has been deprecated. Please use AssemblyFlagsAttribute.AssemblyFlagsAttribute(AssemblyNameFlags) instead. |
|
AssemblyFlagsAttribute(UInt32) |
This constructor has been deprecated. Please use AssemblyFlagsAttribute.AssemblyFlagsAttribute(AssemblyNameFlags) instead. |
|
This property has been deprecated. Please use AssemblyFlagsAttribute.AssemblyFlags instead. |
||
This value has been deprecated. Please use other values in System.Globalization.CultureTypes. |
||
This value has been deprecated. Please use other values in System.Globalization.CultureTypes. |
||
The DynData registry key only works on Win9x, which is no longer supported by the CLR. On NT-based operating systems, use the Registry.PerformanceData registry key instead. |
||
This method is obsolete. Please use Evidence.AddAssemblyEvidence<T> instead. |
||
Evidence should not be treated as an System.Collections.ICollection. Please use the Evidence.GetHostEnumerator and Evidence.GetAssemblyEnumerator methods rather than using CopyTo. |
||
Evidence should not be treated as an System.Collections.ICollection. Please use Evidence.GetHostEnumerator and Evidence.GetAssemblyEnumerator to iterate over the evidence to collect a count. |
||
This method is obsolete. Please use Evidence.AddHostEvidence<T> instead. |
||
GetEnumerator is obsolete. Please use Evidence.GetHostEnumerator and Evidence.GetAssemblyEnumerator instead. |
||
Evidence(Object[], Object[]) |
This constructor is obsolete. Please use the Evidence.Evidence(EvidenceBase[], EvidenceBase[]) constructor instead. |
|
AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. |
||
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted. |
||
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted. |
||
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted. |
||
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted. |
||
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted. |
||
The GetThreadFromFiberCookie method has been deprecated. Use the hosting API to perform this operation. |
||
This API did not perform any operation and will be removed in future versions of the CLR. |
||
The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release. |
||
Use Marshal.GetTypeInfoName(ITypeInfo) instead. |
||
Use Marshal.GetTypeLibLcid(ITypeLib) instead. |
||
Use Marshal.GetTypeLibName(ITypeLib) instead. |
||
Use Marshal.GetTypeLibGuid(ITypeLib) instead. |
||
The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release. |
||
RuntimeEnvironment |
Do not create instances of the System.Runtime.InteropServices.RuntimeEnvironment class. Call the static methods directly on this type instead. |
|
FileStream(IntPtr, FileAccess, Boolean, Int32, Boolean) |
This constructor has been deprecated. Please use FileStream.FileStream(SafeFileHandle, FileAccess, Int32, Boolean) instead, and optionally make a new Microsoft.Win32.SafeHandles.SafeFileHandle with ownsHandle=false if needed. |
|
FileStream(IntPtr, FileAccess) |
This constructor has been deprecated. Please use FileStream.FileStream(SafeFileHandle, FileAccess) instead. |
|
This property has been deprecated. Please use the FileStream.SafeFileHandle property instead. |
||
FileStream(IntPtr, FileAccess, Boolean, Int32) |
This constructor has been deprecated. Please use FileStream.FileStream(SafeFileHandle, FileAccess, Int32) instead, and optionally make a new Microsoft.Win32.SafeHandles.SafeFileHandle with ownsHandle=false if needed. |
|
FileStream(IntPtr, FileAccess, Boolean) |
This constructor has been deprecated. Please use FileStream.FileStream(SafeFileHandle, FileAccess) instead, and optionally make a new Microsoft.Win32.SafeHandles.SafeFileHandle with ownsHandle=false if needed. |
|
Please use Path.GetInvalidPathChars or Path.GetInvalidFileNameChars instead. |
||
Deny is obsolete and will be removed in a future release of the .NET Framework. |
||
Deny is obsolete and will be removed in a future release of the .NET Framework. |
||
Deny is obsolete and will be removed in a future release of the .NET Framework. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. |
||
Please use the FileIOPermissionAttribute.ViewAndModify property instead. |
||
This API has been deprecated. |
||
This permission is no longer used by the CLR. |
||
Please use the RegistryPermissionAttribute.ViewAndModify property instead. |
||
This API has been deprecated. |
||
This permission has been deprecated. Use PermissionState.Unrestricted to get full access. |
||
This permission is no longer used by the CLR. |
||
System.Security.SecurityCriticalScope is only used for .NET 2.0 transparency compatibility. |
||
AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. |
||
AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and should no longer be used. |
||
Deny is obsolete and will be removed in a future release of the .NET Framework. |
||
Because security can no longer be turned off, the SecurityEnabled property no longer has any effect. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet |
This method is obsolete and will be removed in a future release of the .NET Framework. |
|
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
Because execution permission checks can no longer be turned off, the CheckExecutionRights property no longer has any effect. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
IsGranted is obsolete and will be removed in a future release of the .NET Framework. Please use either the AppDomain.PermissionSet or the Assembly.PermissionSet property instead. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
This method is obsolete and will be removed in a future release of the .NET Framework. |
||
Use ChannelServices.RegisterChannel instead. |
||
LifetimeServices |
Do not create instances of the LifetimeServices class. Call the static methods directly on this type instead |
|
Use RemotingConfiguration.Configure(String, Boolean) instead. |
||
Use of this method is not recommended. The LogRemotingStage existed for internal diagnostic purposes only. |
||
CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorage.UsedSize. |
||
MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota. |
||
This property has been deprecated. Please use the IsolatedStorageFileStream.SafeFileHandle property instead. |
||
CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use UsedSize. |
||
MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorageFile.Quota. |
||
This property has been deprecated. |
||
An alternate API is available: Emit the System.Runtime.InteropServices.MarshalAsAttribute custom attribute instead. |
||
An alternate API is available: Emit the System.Runtime.InteropServices.MarshalAsAttribute custom attribute instead. |
||
This API has been deprecated. |
||
This API has been deprecated. |
||
This API has been deprecated. |
||
An alternate API is available: Emit the System.Runtime.InteropServices.MarshalAsAttribute custom attribute instead. |
||
AssemblyHash(AssemblyHashAlgorithm, Byte[]) |
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
|
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
||
AssemblyHash(Byte[]) |
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
|
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
||
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
||
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
||
The System.Configuration.Assemblies.AssemblyHash class has been deprecated. |
||
System.Security.Cryptography.Rfc2898DeriveBytes replaces System.Security.Cryptography.PasswordDeriveBytes for deriving key material from a password and is preferred in new applications. |
||
System.Security.Cryptography.X509Certificates.X509Certificate |
This method has been deprecated. Please use the X509Certificate.Issuer property instead. |
|
System.Security.Cryptography.X509Certificates.X509Certificate |
This method has been deprecated. Please use the X509Certificate.Subject property instead. |
System.Core.dll
System.Data.dll
Type |
Member |
Message |
---|---|---|
DataSysDescriptionAttribute |
DataSysDescriptionAttribute has been deprecated. |
|
Add(String, Object) has been deprecated. Use OdbcParameterCollection.AddWithValue(String, Object). |
||
OdbcPermission() |
OdbcPermission() has been deprecated. Use the OdbcPermission(PermissionState.None) constructor. |
|
OdbcPermission(PermissionState, Boolean) |
OdbcPermission(PermissionState, Boolean) has been deprecated. Use the OdbcPermission(PermissionState.None) constructor. |
|
Add(String, Object) has been deprecated. Use OleDbParameterCollection.AddWithValue). |
||
OleDbPermission() |
OleDbPermission() has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. |
|
OleDbPermission(PermissionState, Boolean) |
OleDbPermission(PermissionState, Boolean) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. |
|
The Provider property has been deprecated. Use the Add method. |
||
The Provider property has been deprecated. Use the Add method. |
||
SqlClientPermission() |
SqlClientPermission() has been deprecated. Use the SqlClientPermission(PermissionState.None) constructor. |
|
SqlClientPermission(PermissionState, Boolean) |
SqlClientPermission(PermissionState, Boolean) has been deprecated. Use the SqlClientPermission(PermissionState.None) constructor. |
|
ConnectionReset has been deprecated. System.Data.SqlClient.SqlConnection will ignore the 'connection reset' keyword and always reset the connection. |
||
Add(String, Object) has been deprecated. Use SqlParameterCollection.AddWithValue). |
System.Data.Entity.dll
Type |
Member |
Message |
---|---|---|
This property is going away, please use the AssociationSetEnd.Name property instead. |
||
Use ObjectContext.ApplyCurrentValues<TEntity> instead. |
||
Use SaveChanges(SaveOptions) instead. |
System.Data.OracleClient.dll
Type |
Member |
Message |
---|---|---|
Scale has been deprecated. Use the System.Math classes to explicitly set the scale of a decimal. |
||
Precision has been deprecated. Use the System.Math classes to explicitly set the precision of a decimal. |
||
Add(String, Object) has been deprecated. Use OracleParameterCollection.AddWithValue). |
System.Design.dll
Type |
Member |
Message |
---|---|---|
This method has been deprecated. Use ComponentDesigner.InitializeNewComponent instead. |
||
This method has been deprecated. Use ComponentDesigner.InitializeExistingComponent instead. |
||
This method has been deprecated. Use ControlDesigner.InitializeNewComponent instead. |
||
Use of this property is not recommended because code serialization is not supported. |
||
The recommended alternative is ControlDesigner.Tag. |
||
The recommended alternative is to inherit from System.Web.UI.Design.ContainerControlDesigner instead and to use an System.Web.UI.Design.EditableDesignerRegion. Regions allow for better control of the content in the designer. |
||
The recommended alternative is System.Web.UI.Design.ControlDesigner.DataBindings.Contains. The System.Web.UI.DataBindingCollection class allows more control of the data bindings associated with the control. |
||
The recommended alternative is ControlDesigner.SetViewFlags. |
||
The recommended alternative is to use System.Web.UI.Design.ControlDesigner.Tag.SetDirty and System.Web.UI.Design.ControlDesigner.Tag.IsDirty. |
||
Use of this method is not recommended because resizing is handled by the ControlDesigner.OnComponentChanged method. |
||
The recommended alternative is ControlDesigner.GetPersistenceContent. |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing, expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
The recommended alternative is ControlDesigner.InTemplateMode. |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this property is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing, expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
||
Use of this method is not recommended because template editing is handled in System.Web.UI.Design.ControlDesigner. To support template editing expose template data in the ControlDesigner.TemplateGroups property and call ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true). |
System.dll
Type |
Member |
Message |
---|---|---|
This property has been deprecated. Use a type description provider to supply type information for COM types instead. |
||
System.ComponentModel.Design.DesignerTransactionCloseEventArgs |
DesignerTransactionCloseEventArgs(Boolean) |
This constructor is obsolete. Use DesignerTransactionCloseEventArgs(Boolean, Boolean) instead. |
This value has been deprecated. It is no longer supported. |
||
This value has been deprecated. Use SelectionTypes.Auto instead. |
||
This value has been deprecated. Use System.Enum class methods to determine valid values, or use a type converter. |
||
This value has been deprecated. It is no longer supported. |
||
This value has been deprecated. Use SelectionTypes.Primary instead. |
||
This value has been deprecated. Use ViewTechnology.Default instead. |
||
This value has been deprecated. Use ViewTechnology.Default instead. |
||
Callers should not use the System.CodeDom.Compiler.ICodeGenerator interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method. |
||
Callers should not use the System.CodeDom.Compiler.ICodeCompiler interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method. |
||
Callers should not use the System.CodeDom.Compiler.ICodeParser interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method. |
||
CAS policy is obsolete and will be removed in a future release of the .NET Framework. Please see Security Changes in the .NET Framework 4 for more information. |
||
CAS policy is obsolete and will be removed in a future release of the .NET Framework. Please see Security Changes in the .NET Framework 4 for more information. |
||
NameValueCollection(IHashCodeProvider, IComparer) |
Please use NameValueCollection(IEqualityComparer) instead. |
|
NameValueCollection(Int32, IHashCodeProvider, IComparer) |
Please use NameValueCollection(Int32, IEqualityComparer) instead. |
|
This event has been deprecated. |
||
Callers should not use the System.CodeDom.Compiler.ICodeGenerator interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. |
||
Callers should not use the System.CodeDom.Compiler.ICodeCompiler interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. |
||
Callers should not use the System.CodeDom.Compiler.ICodeGenerator interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. |
||
Callers should not use the System.CodeDom.Compiler.ICodeCompiler interface and should instead use the methods directly on the System.CodeDom.Compiler.CodeDomProvider class. |
||
The method has been deprecated. Please use Uri.MakeRelativeUri. |
||
Uri(String, Boolean) |
The constructor has been deprecated. Please use Uri(String). The dontEscape parameter is deprecated and is always false. |
|
Uri(Uri, String, Boolean) |
The constructor has been deprecated. Please Uri(Uri, String). The dontEscape parameter is deprecated and is always false. |
|
GetHostByAddress(String) is obsoleted for this type, please use Dns.GetHostEntry(String) instead. |
||
GetHostByAddress(IPAddress) is obsoleted for this type, please use Dns.GetHostEntry(IPAddress) instead. |
||
GetHostByName is obsoleted for this type, please use Dns.GetHostEntry(String) instead. |
||
BeginResolve(String, AsyncCallback, Object) is obsoleted for this type, please use Dns.BeginGetHostEntry(String, AsyncCallback, Object) instead. |
||
EndResolve is obsoleted for this type, please use Dns.EndGetHostEntry instead. |
||
Resolve is obsoleted for this type, please use Dns.GetHostEntry(String) instead. |
||
BeginGetHostByName is obsoleted for this type, please use Dns.BeginGetHostEntry(String, AsyncCallback, Object) instead. |
||
EndGetHostByName is obsoleted for this type, please use Dns.EndGetHostEntry instead. |
||
This property has been deprecated. It is address family dependent. Please use the IPAddress.Equals method to perform comparisons. |
||
CertificatePolicy is obsoleted for this type, please use ServicePointManager.ServerCertificateValidationCallback instead. |
||
This method has been deprecated. Please use the proxy selected for you by default. |
||
SupportsIPv6 is obsoleted for this type, please use Socket.OSSupportsIPv6 instead. |
||
SupportsIPv4 is obsoleted for this type, please use Socket.OSSupportsIPv4 instead. |
||
TcpListener(Int32) |
This method has been deprecated. Please use TcpListener(IPAddress, Int32) instead. |
|
ReplyTo is obsoleted for this type. Please use MailMessage.ReplyToList instead which can accept multiple addresses. |
||
ConfigurationException(String, Exception) |
This class is obsolete. to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
ConfigurationException() |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
This class is obsolete, use GetLineNumber(XmlNode) instead |
||
ConfigurationException(String, String, Int32) |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
ConfigurationException(String) |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
ConfigurationException(String, Exception, String, Int32) |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
ConfigurationException(String, XmlNode) |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
ConfigurationException(String, Exception, XmlNode) |
This class is obsolete, to create a new exception create a System.Configuration.ConfigurationErrorsException. |
|
This class is obsolete, use ConfigurationErrorsException.GetFilename instead. |
||
This method is obsolete. It has been replaced by ConfigurationManager.AppSettings. |
||
This method is obsolete. It has been replaced by ConfigurationManager.GetSection. |
||
This method has been deprecated. Please use CreateEventSource(EventSourceCreationData) instead. |
||
This property has been deprecated. Please use EventLogEntry.InstanceId instead. |
||
This member has been deprecated. Please use EventLogPermissionAccess.Administer instead. |
||
This member has been deprecated. Please use EventLogPermissionAccess.Administer instead. |
||
This member has been deprecated. Please use EventLogPermissionAccess.Write instead. |
||
InstanceDataCollection |
This constructor has been deprecated. Please use InstanceDataCollectionCollection.Item to get an instance of this collection instead. |
|
InstanceDataCollectionCollection |
This constructor has been deprecated. Please use PerformanceCounterCategory.ReadCategory to get an instance of this collection instead. |
|
This field has been deprecated and is not used. Use machine.config or an application configuration file to set the size of the System.Diagnostics.PerformanceCounter file mapping. |
||
This method has been deprecated. Please use Create(String, String, PerformanceCounterCategoryType, String, String) instead. |
||
This method has been deprecated. Please use Create(String, String, PerformanceCounterCategoryType, CounterCreationDataCollection) instead. |
||
PerformanceCounterManager |
This class has been deprecated. Use the performance counters through the System.Diagnostics.PerformanceCounter class instead. |
|
This member has been deprecated. Use PerformanceCounterPermissionAccess.Write instead. |
||
This member has been deprecated. Use PerformanceCounterPermissionAccess.Read instead. |
||
This property has been deprecated. Please use Process.WorkingSet64 instead. |
||
This property has been deprecated. Please use Process.VirtualMemorySize64 instead. |
||
This property has been deprecated. Please use Process.PeakPagedMemorySize64 instead. |
||
This property has been deprecated. Please use Process.PrivateMemorySize64 instead. |
||
This property has been deprecated. Please use Process.PagedSystemMemorySize64 instead. |
||
This property has been deprecated. Please use Process.NonpagedSystemMemorySize64 instead. |
||
This property has been deprecated. Please use Process.PeakVirtualMemorySize64 instead. |
||
This property has been deprecated. Please use Process.PeakWorkingSet64 instead. |
||
This property has been deprecated. Please use PagedMemorySize64 instead. |
System.Drawing.dll
Type |
Member |
Message |
---|---|---|
Do not use the GetFamilies method; use the FontFamily.Families property instead. |
System.Messaging.dll
Type |
Member |
Message |
---|---|---|
This method returns a System.Messaging.MessageEnumerator that implements the MessageEnumerator.RemoveCurrent family of methods incorrectly. Please use MessageQueue.GetMessageEnumerator2 instead. |
||
This method returns a System.Messaging.MessageEnumerator that implements the MessageEnumerator.RemoveCurrent family of methods incorrectly. Please use MessageQueue.GetMessageEnumerator2 instead. |
System.ServiceModel.dll
Type |
Member |
Message |
---|---|---|
This property is deprecated and is maintained for backward compatibility only. The local machine policy will be used to determine if NTLM should be used. |
System.Web.DataVisualization.dll
Type |
Member |
Message |
---|---|---|
ViewStateData has been deprecated. Please investigate Control.ViewState instead. |
System.Web.dll
Type |
Member |
Message |
---|---|---|
This field is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID. |
||
This property is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID. |
||
The recommended alternative is the HttpCapabilitiesBase.EcmaScriptVersion property. A Version.Major version value greater than or equal to 1 implies JavaScript support. |
||
System.Web.Mobile.dll is obsolete. |
||
The recommended alternative is WebConfigurationManager.GetWebApplicationSection in System.Web.dll. |
||
The recommended alternative is HttpContext.GetSection in System.Web.dll. |
||
The recommended alternative is Page.ClientScript.RegisterOnSubmitStatement(Type type, String key, String script). |
||
The recommended alternative is Page.ClientScript.RegisterArrayDeclaration(String arrayName, String arrayValue). |
||
The recommended alternative is Page.ClientScript.GetPostBackEventReference. |
||
The recommended alternative is Page.ClientScript.GetPostBackClientHyperlink. |
||
The recommended alternative is Page.ClientScript.IsStartupScriptRegistered(String key). |
||
The recommended alternative is Page.ClientScript.RegisterHiddenField(String hiddenFieldName, String hiddenFieldInitialValue). |
||
The recommended alternative is PageClientScript.RegisterClientScriptBlock(Type type, String key, String script). |
||
The recommended alternative is Page.SetFocus and PageMaintainScrollPositionOnPostback(). |
||
The recommended alternative is Page.ClientScript.GetPostBackEventReference. |
||
The recommended alternative is Page.ClientScript.RegisterStartupScript(Type type, String key, String script). |
||
The recommended alternative is Page.ClientScript.IsClientScriptBlockRegistered(String key). |
||
The recommended alternative is Page.ClientScript.GetPostBackEventReference. |
||
The recommended alternative is the Xml.XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call XPathDocument.CreateNavigator to create an System.Xml.XPath.XPathNavigator. |
System.Web.DynamicData.dll
Type |
Member |
Message |
---|---|---|
Use the EnablePersistedSelection property on a databound control such as System.Web.UI.WebControls.GridView or System.Web.UI.WebControls.ListView. |
System.Web.Extensions.dll
Type |
Member |
Message |
---|---|---|
NotifyScriptLoaded is no longer required in script references. |
||
This property is obsolete. Set the Path property on each individual System.Web.UI.ScriptReference instead. |
||
This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual System.Web.UI.ScriptReference. |
||
This property is obsolete. Use ScriptResourceAttribute.StringResourceClientTypeName instead. |
||
This property is obsolete. Use ScriptResourceAttribute.StringResourceName instead. |
System.Web.Services.dll
Type |
Member |
Message |
---|---|---|
This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced. |
||
This method will be removed from a future version. The method call is no longer required for resource discovery. |
System.Windows.Forms.dll
Type |
Member |
Message |
---|---|---|
This enumeration value has been deprecated. There is no replacement. |
||
This method has been deprecated. Use the Control.Scale(SizeF) method instead. |
||
This method has been deprecated. Use the Control.Scale(SizeF) method instead. |
||
This method has been deprecated. Use the ContainerControl.AutoScaleDimensions property instead. |
||
This property has been deprecated. Use the ContainerControl.AutoScaleMode property instead. |
||
This property has been deprecated. Use the ContainerControl.AutoScaleDimensions property instead. |
System.Xaml.dll
Type |
Member |
Message |
---|---|---|
MarkupExtensionReturnTypeAttribute(Type, Type) |
The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute.MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use System.Windows.Markup.XamlSetMarkupExtensionAttribute. |
|
This is not used by the XAML parser. Please look at System.Windows.Markup.XamlSetMarkupExtensionAttribute. |
System.Xml.dll
Type |
Member |
Message |
---|---|---|
Use XmlConvert.ToDateTime(String, XmlDateTimeSerializationMode). |
||
Use XmlConvert.ToString(DateTime, XmlDateTimeSerializationMode). |
||
Validation type should be specified as ValidationType.DTD or ValidationType.Schema. |
||
XDR Validation through System.Xml.XmlValidatingReader is obsoleted. |
||
Use the XmlReaderSettings.DtdProcessing property instead. |
||
Use the XmlTextReader.DtdProcessing property instead. |
||
Use XmlSchemaSet for schema compilation and validation. |
||
Use XmlSchemaSet for schema compilation and validation. |
||
This property has been deprecated. Please use XmlSchemaAttribute.AttributeSchemaType property, which returns a strongly typed attribute type. |
||
This property has been deprecated. Please use the XmlSchemaType.BaseXmlSchemaType property, which returns a strongly typed base schema type. |
||
This property has been deprecated. Please use the XmlSchemaElement.ElementSchemaType property, which returns a strongly typed element type. |
||
CodeIdentifier |
This class should never get constructed as it contains only static methods. |
|
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of XmlSerializer.FromMappings that does not take an System.Security.Policy.Evidence parameter. |
||
XmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence) |
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an XmlSerializer.XmlSerializer constructor overload that does not take an System.Security.Policy.Evidence parameter. |
|
CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence) |
This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of XmlSerializerFactory.CreateSerializer that does not take an System.Security.Policy.Evidence parameter. |
Obsolete Members in Microsoft Assemblies
The following tables list the obsolete members in Microsoft assemblies. These assemblies are special-purpose assemblies such as assemblies that target an individual language (such as Microsoft.VisualBasic.dll) or a build system (such as Microsoft.Build.Engine.dll).
IEHost.dll and IEExec.exe
The IEHost.dll and IEExec.exe assemblies have been removed from the .NET Framework. All of their types and their members are obsolete and are not supported as of .NET Framework 4. These assemblies were used to host Windows Forms controls and to run executables in Internet Explorer. Alternatives to this technology include ClickOnce, XAML Browser Applications (XBAP), and Microsoft Silverlight.
ISymWrapper.dll
Type |
Member |
Message |
---|---|---|
The recommended alternative is SymBinder.GetReader(IntPtr, String, String). ISymbolBinder1.GetReader takes the importer interface pointer as an System.IntPtr instead of an System.Int32, and thus works on both 32-bit and 64-bit architectures. |
Microsoft.Build.Conversion.v4.0.dll
Type |
Member |
Message |
---|---|---|
Use parameterless ProjectFileConverter.ConvertInMemory() method instead. |
||
Use parameterless ProjectFileConverter.ConvertInMemory() method instead. |
||
Use parameterless Convert() overload instead. |
||
Use parameterless Convert() overload instead. |
Microsoft.Build.Engine.dll
Type |
Member |
Message |
---|---|---|
Engine(String) |
If you were simply passing in the .NET Framework location as the BinPath, just change to the parameterless Engine() constructor. Otherwise, you can define custom toolsets in the registry or config file, or by adding elements to the Engine's Microsoft.Build.BuildEngine.ToolsetCollection. Then use either the Engine() or Engine(ToolsetLocations) constructor instead. |
|
Avoid setting BinPath. If you were simply passing in the .NET Framework location as the BinPath, no other action is necessary. Otherwise, define Toolsets instead in the registry or config file, or by adding elements to the Engine's Microsoft.Build.BuildEngine.ToolsetCollection, in order to use a custom BinPath. |
Microsoft.VisualBasic.dll
Type |
Member |
Message |
---|---|---|
This member has been deprecated. Please use FileSystem.FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Int32 for writing non-object types. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
Do not use this method. |
||
The DynData registry key works only on Win9x, which is not supported by this version of the .NET Framework. Use the PerformanceData registry key instead. This property will be removed from a future version of the Framework. |
See Also
Concepts
Obsolete Types in the .NET Framework 4