.NET Framework 中的过时成员

本文列出了 .NET Framework 4.5 及更高版本中已过时的类型成员。 类型成员由程序集分组。

本文不列出过时类型的成员。 有关过时类型的列表,请参阅 “已过时类型”。

mscorlib.dll

类型 成员 消息
Microsoft.Win32.Registry DynData DynData注册表项仅适用于 Win9x,CLR 不再支持它。 在基于 NT 的作系统上,请改用 Registry.PerformanceData 注册表项或 RegistryProxy.PerformanceData 注册表代理。
System.Activator CreateInstance(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 Activator.CreateInstance 参数的 System.Security.Policy.Evidence 的重载。
System.Activator CreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 Activator.CreateInstance 参数的 System.Security.Policy.Evidence 的重载。
System.Activator CreateInstanceFrom(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用 Evidence to sandbox 的方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Activator.CreateInstanceFrom 参数的 System.Security.Policy.Evidence 的重载。
System.Activator CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 Activator.CreateInstanceFrom 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain AppendPrivatePath AppendPrivatePath 已弃用。 请改为调查 AppDomainSetup.PrivateBinPath 的用法。
System.AppDomain ClearPrivatePath ClearPrivatePath 已弃用。 请改为调查 AppDomainSetup.PrivateBinPath 的用法。
System.AppDomain ClearShadowCopyPath ClearShadowCopyPath 已弃用。 请改为调查 AppDomainSetup.ShadowCopyDirectories 的用法。
System.AppDomain CreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.CreateInstance 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain CreateInstanceAndUnwrap(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.CreateInstanceAndUnwrap 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.CreateInstanceFrom 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain CreateInstanceFromAndUnwrap(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.CreateInstanceFromAndUnwrap 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.DefineDynamicAssembly 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean, IEnumerable<CustomAttributeBuilder>) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.AppDomain ExecuteAssembly(String, Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssembly 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain ExecuteAssembly(String, Evidence, String[]) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssembly 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain ExecuteAssembly(String, Evidence, String[], Byte[], AssemblyHashAlgorithm) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssembly 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain ExecuteAssemblyByName(AssemblyName, Evidence, String[]) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssemblyByName 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain ExecuteAssemblyByName(String, Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssemblyByName 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain ExecuteAssemblyByName(String, Evidence, String[]) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.ExecuteAssemblyByName 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain GetCurrentThreadId GetCurrentThreadId 已弃用,因为它在光纤(也称为轻型线程)上运行托管线程时不提供稳定的 ID。 若要获取托管线程的稳定标识符,请使用该 Thread.ManagedThreadId 属性。
System.AppDomain Load(AssemblyName, Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.Load 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain Load(Byte[], Byte[], Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.Load 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain Load(String, Evidence) 使用基于证据进行沙盒化的方法已过时,并将在 .NET Framework 的未来版本中被移除。 请使用不采用 AppDomain.Load 参数的 System.Security.Policy.Evidence 的重载。
System.AppDomain SetAppDomainPolicy AppDomain 策略级别已过时,将在 .NET Framework 的未来版本中删除。
System.AppDomain SetCachePath SetCachePath 已弃用。 请改为调查 AppDomainSetup.CachePath 的用法。
System.AppDomain SetDynamicBase SetDynamicBase 已弃用。 请改为调查 AppDomainSetup.DynamicBase 的用法。
System.AppDomain SetShadowCopyFiles SetShadowCopyFiles 已弃用。 请改为调查 AppDomainSetup.ShadowCopyFiles 的用法。
System.AppDomain SetShadowCopyPath SetShadowCopyPath 已弃用。 请改为调查 AppDomainSetup.ShadowCopyDirectories 的用法。
System.Enum ToString(IFormatProvider) provider不使用该参数。 使用 Enum.ToString()
System.Enum ToString(String, IFormatProvider) provider不使用该参数。 使用 Enum.ToString(String)
System.LoaderOptimization DisallowBindings 此方法已弃用。 请改用 Assembly.Load
System.LoaderOptimization DomainMask 此方法已弃用。 请改用 Assembly.Load
System.Collections.Hashtable Hashtable(IDictionary, IHashCodeProvider, IComparer) 请改用 Hashtable(IDictionary, IEqualityComparer)
System.Collections.Hashtable Hashtable(IHashCodeProvider, IComparer) 请改用 Hashtable(IEqualityComparer)
System.Collections.Hashtable Hashtable(Int32, IHashCodeProvider, IComparer) 请改用 Hashtable(Int32, IEqualityComparer)
System.Collections.Hashtable Hashtable(Int32, Single, IHashCodeProvider, IComparer) 请改用 Hashtable(Int32, Single, IEqualityComparer)
System.Collections.Hashtable Hashtable.comparer 使用 Hashtable.EqualityComparer 属性。
System.Collections.Hashtable Hashtable.hcp 使用 KeyComparer 属性。
System.Collections.Hashtable Hashtable(IDictionary, Single, IHashCodeProvider, IComparer) 请改用 Hashtable(IDictionary, Single, IEqualityComparer)
System.Configuration.Assemblies.AssemblyHash Algorithm System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash AssemblyHash(AssemblyHashAlgorithm, Byte[]) System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash AssemblyHash(Byte[]) System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash Clone System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash Empty System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash GetValue System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Configuration.Assemblies.AssemblyHash SetValue System.Configuration.Assemblies.AssemblyHash 已弃用。
System.Diagnostics.Debugger Debugger 不要创建类的 Debugger 实例。 直接在此类型上调用静态方法。
System.Diagnostics.StackTrace StackTrace(Thread, Boolean) 在 .NET Framework 4.5 中首次被废弃。

此构造函数已弃用。 使用不需要参数的 Thread 构造函数。
System.Diagnostics.SymbolStore.ISymbolBinder GetReader 建议的替代方法是 ISymbolBinder1.GetReader,它采用导入程序接口指针作为 IntPtr 替代 Int32方法,因此适用于 32 位和 64 位体系结构。
System.Globalization.CultureTypes FrameworkCultures 此值已弃用。 在System.Globalization.CultureTypes中使用其他值。
System.Globalization.CultureTypes WindowsOnlyCultures 此值已弃用。 在System.Globalization.CultureTypes中使用其他值。
System.IO.FileStream FileStream(IntPtr, FileAccess) 此构造函数已弃用。 请改用 FileStream(SafeFileHandle, FileAccess)
System.IO.FileStream FileStream(IntPtr, FileAccess, Boolean) 此构造函数已弃用。 请用FileStream(SafeFileHandle, FileAccess)替代,并在需要时使用Microsoft.Win32.SafeHandles.SafeFileHandleownsHandle= 来创建新的false
System.IO.FileStream FileStream(IntPtr, FileAccess, Boolean, Int32) 此构造函数已弃用。 请用FileStream(SafeFileHandle, FileAccess, Int32)替代,并在需要时使用Microsoft.Win32.SafeHandles.SafeFileHandleownsHandle= 来创建新的false
System.IO.FileStream FileStream(IntPtr, FileAccess, Boolean, Int32, Boolean) 此构造函数已弃用。 请用FileStream(SafeFileHandle, FileAccess, Int32, Boolean)替代,并在需要时使用Microsoft.Win32.SafeHandles.SafeFileHandleownsHandle= 来创建新的false
System.IO.FileStream Handle 此属性已弃用。 FileStream.SafeFileHandle请改用 属性。
System.IO.Path InvalidPathChars 请改用 Path.GetInvalidPathCharsPath.GetInvalidFileNameChars
System.IO.Stream CreateWaitHandle CreateWaitHandle 最终将删除。 请改用 new ManualResetEvent(false)
System.IO.Stream ObjectInvariant 在 .NET Framework 4.5 中首次被废弃。

请勿调用或重写此方法。
System.IO.IsolatedStorage.IsolatedStorage CurrentSize CurrentSize 已弃用,因为它不符合 CLS。 若要获取当前大小,请使用 IsolatedStorage.UsedSize
System.IO.IsolatedStorage.IsolatedStorage MaximumSize MaximumSize 已弃用,因为它不符合 CLS。 若要获取最大大小,请使用 IsolatedStorage.Quota
System.IO.IsolatedStorage.IsolatedStorageFile CurrentSize CurrentSize 已弃用,因为它不符合 CLS。 若要获取当前大小,请使用 UsedSize
System.IO.IsolatedStorage.IsolatedStorageFile MaximumSize MaximumSize 已弃用,因为它不符合 CLS。 若要获取最大大小,请使用 IsolatedStorageFile.Quota
System.IO.IsolatedStorage.IsolatedStorageFileStream Handle 此属性已弃用。 IsolatedStorageFileStream.SafeFileHandle请改用 属性。
System.Reflection.Assembly Load(AssemblyName, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.Load 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly Load(Byte[], Byte[], Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.Load 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly Load(String, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.Load 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly LoadFile(String, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.LoadFile 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly LoadFrom(String, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.LoadFrom 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly LoadFrom(String, Evidence, Byte[], AssemblyHashAlgorithm) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 Assembly.LoadFrom 参数的 System.Security.Policy.Evidence 的重载。
System.Reflection.Assembly LoadWithPartialName(String) 此方法已弃用。 请改用 Assembly.Load
System.Reflection.Assembly LoadWithPartialName(String, Evidence) 此方法已弃用。 请改用 Assembly.Load
System.Reflection.AssemblyFlagsAttribute AssemblyFlagsAttribute(Int32) 此构造函数已弃用。 请改用 AssemblyFlagsAttribute(AssemblyNameFlags)
System.Reflection.AssemblyFlagsAttribute AssemblyFlagsAttribute(UInt32) 此构造函数已弃用。 请改用 AssemblyFlagsAttribute(AssemblyNameFlags)
System.Reflection.AssemblyFlagsAttribute Flags 此属性已弃用。 请改用 AssemblyFlagsAttribute.AssemblyFlags
System.Reflection.Emit.ConstructorBuilder ReturnType 此属性已弃用。
System.Reflection.Emit.FieldBuilder SetMarshal 备用 API 可用:改为发出 System.Runtime.InteropServices.MarshalAsAttribute 自定义属性。
System.Reflection.Emit.FlowControl Phi 此 API 已弃用。
System.Reflection.Emit.MethodBuilder SetMarshal 备用 API 可用:改为发出 System.Runtime.InteropServices.MarshalAsAttribute 自定义属性。
System.Reflection.Emit.OpCodeType Annotation 此 API 已弃用。
System.Reflection.Emit.OperandType InlinePhi 此 API 已弃用。
System.Reflection.Emit.ParameterBuilder SetMarshal 备用 API 可用:改为发出 System.Runtime.InteropServices.MarshalAsAttribute 自定义属性。
System.Resources.ResourceManager ResourceSets 请改为调用 ResourceManager.InternalGetResourceSet(CultureInfo, Boolean, Boolean)
System.Runtime.InteropServices.Marshal GetManagedThunkForUnmanagedMethodPtr 该方法 GetManagedThunkForUnmanagedMethodPtr 已弃用,将在将来的版本中删除。
System.Runtime.InteropServices.Marshal GetThreadFromFiberCookie 方法 GetThreadFromFiberCookie 已弃用。 使用宿主 API 执行此作。
System.Runtime.InteropServices.Marshal GetTypeInfoName(UCOMITypeInfo) 请改用 Marshal.GetTypeInfoName(ITypeInfo)
System.Runtime.InteropServices.Marshal GetTypeLibGuid(UCOMITypeLib) 请改用 Marshal.GetTypeLibGuid(ITypeLib)
System.Runtime.InteropServices.Marshal GetTypeLibLcid(UCOMITypeLib) 请改用 Marshal.GetTypeLibLcid(ITypeLib)
System.Runtime.InteropServices.Marshal GetTypeLibName(UCOMITypeLib) 请改用 Marshal.GetTypeLibName(ITypeLib)
System.Runtime.InteropServices.Marshal GetUnmanagedThunkForManagedMethodPtr 该方法 GetUnmanagedThunkForManagedMethodPtr 已弃用,将在将来的版本中删除。
System.Runtime.InteropServices.Marshal ReleaseThreadCache 此 API 未执行任何作,将在 CLR 的未来版本中删除。
System.Runtime.InteropServices.RuntimeEnvironment RuntimeEnvironment 使用此成员将生成编译器错误。

不要创建类的 System.Runtime.InteropServices.RuntimeEnvironment 实例。 直接在此类型上调用静态方法。
System.Runtime.Remoting.Channels.ChannelServices RegisterChannel 请改用 ChannelServices.RegisterChannel(IChannel, Boolean)
System.Runtime.Remoting.Lifetime.LifetimeServices LifetimeServices 使用此成员将生成编译器错误。

不要创建类的 LifetimeServices 实例。 直接在此类型上调用静态方法。
System.Runtime.Remoting.RemotingConfiguration Configure(String) 请改用 RemotingConfiguration.Configure(String, Boolean)
System.Runtime.Remoting.RemotingServices LogRemotingStage 不建议使用此方法。 LogRemotingStage仅用于内部诊断目的。
System.Security.CodeAccessPermission Deny Deny 已过时,将在 .NET Framework 的未来版本中删除。
System.Security.CodeAccessPermission RevertDeny Deny 已过时,将在 .NET Framework 的未来版本中删除。
System.Security.HostSecurityManager DomainPolicy AppDomain 策略级别已过时,将在 .NET Framework 的未来版本中删除。
System.Security.HostSecurityManagerOptions HostPolicyLevel AppDomain 策略级别已过时,将在 .NET Framework 的未来版本中删除。
System.Security.PermissionSet ConvertPermissionSet 此方法已过时,不应再使用。
System.Security.PermissionSet Deny Deny 已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityCriticalAttribute Scope System.Security.SecurityCriticalScope 仅用于 .NET Framework 2.0 透明度兼容性。
System.Security.SecurityManager CheckExecutionRights 由于无法再关闭执行权限检查,因此该 CheckExecutionRights 属性不再有任何影响。
System.Security.SecurityManager IsGranted IsGranted 已过时,将在 .NET Framework 的未来版本中删除。 请改用AppDomain.PermissionSet属性或Assembly.PermissionSet属性。
System.Security.SecurityManager LoadPolicyLevelFromFile 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager LoadPolicyLevelFromString 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager PolicyHierarchy 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager ResolvePolicy(Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet) 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager ResolvePolicy(Evidence[]) 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager ResolvePolicyGroups 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager ResolveSystemPolicy 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager SavePolicy 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager SavePolicyLevel 此方法已过时,将在 .NET Framework 的未来版本中删除。
System.Security.SecurityManager SecurityEnabled 由于无法再关闭安全性,因此该 SecurityEnabled 属性不再有任何影响。
System.Security.Cryptography.PasswordDeriveBytes GetBytes System.Security.Cryptography.Rfc2898DeriveBytes 替代 System.Security.Cryptography.PasswordDeriveBytes 用于从密码中派生密钥材料,并在新应用程序中被优先使用。
System.Security.Cryptography.X509Certificates.X509Certificate GetIssuerName 此方法已弃用。 X509Certificate.Issuer请改用 属性。
System.Security.Cryptography.X509Certificates.X509Certificate GetName 此方法已弃用。 X509Certificate.Subject请改用 属性。
System.Security.Permissions.FileIOPermissionAttribute All FileIOPermissionAttribute.ViewAndModify请改用 属性。
System.Security.Permissions.ReflectionPermissionAttribute ReflectionEmit CLR 不再使用此权限。
System.Security.Permissions.ReflectionPermissionAttribute TypeInformation 此 API 已弃用。
System.Security.Permissions.ReflectionPermissionFlag AllFlags 此权限已弃用。 AllFlags枚举成员不包括 RestrictedMemberAccess。 使用 PermissionState.Unrestricted 获取完全访问权限。
System.Security.Permissions.ReflectionPermissionFlag ReflectionEmit CLR 不再使用此权限。
System.Security.Permissions.ReflectionPermissionFlag TypeInformation 此 API 已弃用。
System.Security.Permissions.RegistryPermissionAttribute All RegistryPermissionAttribute.ViewAndModify请改用 属性。
System.Security.Permissions.SecurityAction Deny Deny 已过时,将在 .NET Framework 的未来版本中删除。
System.Security.Permissions.SecurityAction RequestMinimum 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.Security.Permissions.SecurityAction RequestOptional 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.Security.Permissions.SecurityAction RequestRefuse 程序集级别声明性安全性已过时,默认情况下 CLR 不再强制执行。
System.Security.Policy.Evidence AddAssembly 此方法已过时。 请改用 Evidence.AddAssemblyEvidence
System.Security.Policy.Evidence AddHost 此方法已过时。 请改用 Evidence.AddHostEvidence
System.Security.Policy.Evidence CopyTo 证据不应被视为 System.Collections.ICollection。 使用Evidence.GetHostEnumeratorEvidence.GetAssemblyEnumerator方法,而不是使用CopyTo
System.Security.Policy.Evidence Count 证据不应被视为 System.Collections.ICollection。 使用 Evidence.GetHostEnumeratorEvidence.GetAssemblyEnumerator 来遍历证据以收集数量。
System.Security.Policy.Evidence Evidence(Object[], Object[]) 此构造函数已过时。 请改用 Evidence(EvidenceBase[], EvidenceBase[]) 构造函数。
System.Security.Policy.Evidence GetEnumerator GetEnumerator 已过时。 请改用 Evidence.GetHostEnumeratorEvidence.GetAssemblyEnumerator
System.Security.Policy.PolicyLevel AddFullTrustAssembly(StrongName) 由于所有 GAC 程序集始终获得完全信任,因此完全信任列表不再有意义。 应安装 GAC 中安全策略中使用的任何程序集,以确保它们受信任。
System.Security.Policy.PolicyLevel AddFullTrustAssembly(StrongNameMembershipCondition) 由于所有 GAC 程序集始终获得完全信任,因此完全信任列表不再有意义。 应安装 GAC 中安全策略中使用的任何程序集,以确保它们受信任。
System.Security.Policy.PolicyLevel CreateAppDomainLevel AppDomain 策略级别已过时,将在 .NET Framework 的未来版本中删除。
System.Security.Policy.PolicyLevel FullTrustAssemblies 由于所有 GAC 程序集始终获得完全信任,因此完全信任列表不再有意义。 应安装 GAC 中安全策略中使用的任何程序集,以确保它们受信任。
System.Security.Policy.PolicyLevel RemoveFullTrustAssembly(StrongName) 由于所有 GAC 程序集始终获得完全信任,因此完全信任列表不再有意义。 应安装 GAC 中安全策略中使用的任何程序集,以确保它们受信任。
System.Security.Policy.PolicyLevel RemoveFullTrustAssembly(StrongNameMembershipCondition) 由于所有 GAC 程序集始终获得完全信任,因此完全信任列表不再有意义。 应安装 GAC 中安全策略中使用的任何程序集,以确保它们受信任。
System.Threading.Overlapped EventHandle 此属性不兼容 64 位。 请改用 Overlapped.EventHandleIntPtr
System.Threading.Overlapped Overlapped(Int32, Int32, Int32, IAsyncResult) 此构造函数不兼容 64 位。 请使用采用事件句柄的 Overlapped(Int32, Int32, IntPtr, IAsyncResult)System.IntPtr 构造函数
System.Threading.Overlapped Pack(IOCompletionCallback) 此方法不安全。 请改用 Overlapped.Pack(IOCompletionCallback, Object)
System.Threading.Overlapped UnsafePack(IOCompletionCallback) 此方法不安全。 请改用 Overlapped.UnsafePack(IOCompletionCallback, Object)
System.Threading.Thread ApartmentState 属性 ApartmentState 已弃用。 请改用 Thread.GetApartmentStateThread.SetApartmentStateThread.TrySetApartmentState
System.Threading.Thread GetCompressedStack 不再支持 GetCompressedStack。 使用 System.Threading.CompressedStack 类。
System.Threading.Thread Resume Resume 已弃用。 使用其他类 System.Threading(例如 MonitorMutexEventWaitHandleSemaphore)来同步线程或保护资源。
System.Threading.Thread SetCompressedStack 不再支持 SetCompressedStack。 使用 System.Threading.CompressedStack 类。
System.Threading.Thread Suspend Suspend 已弃用。 使用System.Threading中的其他类,例如MonitorMutexEventWaitHandleSemaphore,来同步线程或保护资源。
System.Threading.ThreadPool BindHandle(IntPtr) BindHandle(IntPtr) 已弃用。 请改用 ThreadPool.BindHandle(SafeHandle)
System.Threading.WaitHandle Handle WaitHandle.SafeWaitHandle请改用 属性。

PresentationCore.dll

类型 成员 消息
System.Windows.UIElement BitmapEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.UIElement BitmapEffectInput 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.UIElement PersistId PersistId 是一个过时的属性,可能在将来的版本中删除。 未定义此属性的值。
System.Windows.Media.ContainerVisual BitmapEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.ContainerVisual BitmapEffectInput 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.DrawingContext PushEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.FormattedText FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush) 使用 PixelsPerDip 重写。
System.Windows.Media.FormattedText FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution) 使用 PixelsPerDip 重写。
System.Windows.Media.FormattedText FormattedText(String, CultureInfo, FlowDirection, Typeface, Double, Brush, NumberSubstitution, TextFormattingMode) 使用 PixelsPerDip 重写。
System.Windows.Media.GlyphRun GlyphRun() 使用 PixelsPerDip 重写。
System.Windows.Media.GlyphRun GlyphRun(GlyphTypeface, Int32, Boolean, Double, IList<UInt16>, Point, IList<Double>, IList<Point>, IList<Char>, String, IList<UInt16>, IList<Boolean>, XmlLanguage) 使用 PixelsPerDip 重写。
System.Windows.Media.RenderCapability IsShaderEffectSoftwareRenderingSupported 此属性已弃用。 请改用静态 RenderCapability.IsPixelShaderVersionSupportedInSoftware 方法。
System.Windows.Media.Visual VisualBitmapEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Visual VisualBitmapEffectInput 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BevelBitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BevelBitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect CreateBitmapEffectOuter 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect GetOutput 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect InitializeBitmapEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect SetValue 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffectGroup CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BitmapEffectGroup UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BlurBitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.BlurBitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.DropShadowBitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.DropShadowBitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.EmbossBitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.EmbossBitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.OuterGlowBitmapEffect CreateUnmanagedEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Effects.OuterGlowBitmapEffect UpdateUnmanagedPropertyState 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Media3D.Viewport3DVisual BitmapEffect 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect
System.Windows.Media.Media3D.Viewport3DVisual BitmapEffectInput 位图效果已弃用,不再起作用。 请考虑在适当的位置改用 System.Windows.Media.Effects.Effect

PresentationFramework.dll

System.Activities.dll

System.Activities.Presentation.dll

类型 成员 消息
System.Activities.Presentation.DragDropHelper DoDragMove(WorkflowViewElement, Point) 此方法不支持拖动多个项。
System.Activities.Presentation.DragDropHelper GetCompositeView(DragEventArgs) 在 .NET Framework 4.5 中首次被废弃。

此方法不支持拖动多个项。 请改用 GetCompositeView(WorkflowViewElement)
System.Activities.Presentation.DragDropHelper GetDragDropCompletedEffects 此方法不支持拖动多个项。
System.Activities.Presentation.DragDropHelper GetDraggedModelItem 在 .NET Framework 4.5 中首次被废弃。

此方法不支持拖动多个项。 请改用 GetDraggedModelItems
System.Activities.Presentation.DragDropHelper GetDroppedObject 在 .NET Framework 4.5 中首次被废弃。

此方法不支持拖动多个项。 请改用 GetDroppedObjects
System.Activities.Presentation.DragDropHelper SetDragDropCompletedEffects 此方法不支持拖动多个项。
System.Activities.Presentation.Services.ModelChangedEventArgs ItemsAdded 在 .NET Framework 4.5 中首次被废弃。

请勿使用此属性。 请改用 ModelChangeInfo
System.Activities.Presentation.Services.ModelChangedEventArgs ItemsRemoved 在 .NET Framework 4.5 中首次被废弃。

请勿使用此属性。 请改用 ModelChangeInfo
System.Activities.Presentation.Services.ModelChangedEventArgs PropertiesChanged 在 .NET Framework 4.5 中首次被废弃。

请勿使用此属性。 请改用 ModelChangeInfo

System.Core.dll

类型 成员 消息
System.Diagnostics.Eventing.Reader.StandardEventKeywords CorrelationHint 在 .NET Framework 4.5 中首次被废弃。

值不正确;请改用 CorrelationHint2
System.Linq.ParallelEnumerable Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer<TKey>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.ParallelEnumerable Zip 二进制运算符的第二个数据源必须是System.Linq.ParallelQuery<TSource>类型,而不是System.Collections.Generic.IEnumerable<T>类型。 若要解决此问题,请使用 AsParallel<TSource>(IEnumerable<TSource>) 扩展方法将正确的数据源 System.Linq.ParallelQuery<TSource>转换为 。
System.Linq.Expressions.Expression Expression(ExpressionType, Type) 使用不采用 System.Linq.Expressions.ExpressionType 参数的其他构造函数。 然后,重写 Expression.NodeTypeExpression.Type 属性以提供可能指定给此构造函数的值。
System.Linq.Expressions.MemberBinding MemberBinding 请勿使用此构造函数。 它将在未来版本中删除。
System.Runtime.CompilerServices.CallSiteOps AddRule 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps Bind 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps ClearMatch 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps CreateMatchmaker 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps GetCachedRules<T>(RuleCache<T>) 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps GetMatch 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps GetRuleCache 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps GetRules 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps MoveRule<T>(RuleCache<T>, T, Int32) 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps SetNotMatched 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.CallSiteOps UpdateRules 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps CreateRuntimeVariables() 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps CreateRuntimeVariables(Object[], Int64[]) 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps ExpandoCheckVersion 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps ExpandoPromoteClass 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps ExpandoTryDeleteValue 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps ExpandoTryGetValue 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps ExpandoTrySetValue 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps MergeRuntimeVariables 使用此成员将生成编译器错误。

请勿使用此方法。
System.Runtime.CompilerServices.RuntimeOps Quote 使用此成员将生成编译器错误。

请勿使用此方法。

System.Data.dll

类型 成员 消息
System.Data.DataSysDescriptionAttribute DataSysDescriptionAttribute DataSysDescriptionAttribute 已弃用。
System.Data.Common.DataAdapter CloneInternals CloneInternals 已弃用。 使用 DataAdapter(DataAdapter) 构造函数。
System.Data.Common.DBDataPermission DBDataPermission() 使用此成员将生成编译器错误。

此构造函数已弃用。 将值 DBDataPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.Common.DBDataPermission DBDataPermission(PermissionState, Boolean) 使用此成员将生成编译器错误。

此构造函数已弃用。 将值 DBDataPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.Odbc.OdbcParameterCollection Add(String, Object) Add(String, Object) 已弃用。 使用 OdbcParameterCollection.AddWithValue(String, Object)
System.Data.Odbc.OdbcPermission OdbcPermission() 使用此成员将生成编译器错误。

OdbcPermission() 已弃用。 将值 OdbcPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.Odbc.OdbcPermission OdbcPermission(PermissionState, Boolean) 使用此成员将生成编译器错误。

OdbcPermission(PermissionState, Boolean) 已弃用。 将值 OdbcPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.OleDb.OleDbParameterCollection Add(String, Object) Add(String, Object) 已弃用。 使用 OleDbParameterCollection.AddWithValue 方法。
System.Data.OleDb.OleDbPermission OleDbPermission() 使用此成员将生成编译器错误。

OleDbPermission() 已弃用。 将OleDbPermission(PermissionState)的值传递为PermissionState.None
System.Data.OleDb.OleDbPermission OleDbPermission(PermissionState, Boolean) 使用此成员将生成编译器错误。

OleDbPermission(PermissionState, Boolean) 已弃用。 将OleDbPermission(PermissionState)的值传递为PermissionState.None
System.Data.OleDb.OleDbPermission Provider 属性 OleDbPermission.Provider 已弃用。 使用 DBDataPermission.Add(String, String, KeyRestrictionBehavior) 方法。
System.Data.OleDb.OleDbPermissionAttribute Provider 属性 OleDbPermissionAttribute.Provider 已弃用。 使用 DBDataPermission.Add(String, String, KeyRestrictionBehavior) 方法。
System.Data.SqlClient.SqlClientPermission SqlClientPermission() 使用此构造函数将生成编译器错误。

SqlClientPermission() 已弃用。 将值 SqlClientPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.SqlClient.SqlClientPermission SqlClientPermission(PermissionState, Boolean) 使用此构造函数将生成编译器错误。

SqlClientPermission(PermissionState, Boolean) 已弃用。 将值 SqlClientPermission(PermissionState) 传递给 PermissionState.None 构造函数。
System.Data.SqlClient.SqlConnectionStringBuilder ConnectionReset ConnectionReset 已弃用。 System.Data.SqlClient.SqlConnection 将忽略“连接重置”关键字,并始终重置连接。
System.Data.SqlClient.SqlParameterCollection Add(String, Object) Add(String, Object) 已弃用。 使用 SqlParameterCollection.AddWithValue

System.Data.Entity.dll

System.Data.OracleClient.dll

类型 成员 消息
System.Data.OracleClient.OracleParameter Precision Precision 已弃用。 使用 System.Math 类显式设置小数的精度。
System.Data.OracleClient.OracleParameter Scale Scale 已弃用。 使用 System.Math 类显式设置某小数的小数位数。
System.Data.OracleClient.OracleParameterCollection Add(String, Object) Add(String, Object) 已弃用。 使用 OracleParameterCollection.AddWithValue

System.Design.dll

类型 成员 消息
System.ComponentModel.Design.ComponentDesigner InitializeNonDefault 此方法已弃用。 请改用 ComponentDesigner.InitializeExistingComponent
System.ComponentModel.Design.ComponentDesigner OnSetComponentDefaults 此方法已弃用。 请改用 ComponentDesigner.InitializeNewComponent
System.ComponentModel.Design.DesignSurface CreateComponent 方法 CreateComponent 已被替换为 CreateInstance(Type)
System.ComponentModel.Design.Serialization.CodeDomSerializer SerializeToReferenceExpression 此方法已弃用。 请改用 SerializeToExpressionGetExpression
System.Web.UI.Design.ControlDesigner DesignTimeElementView 使用此属性将生成编译器错误。

错误:此属性不能再被引用,它的存在是为了支持现有已编译的应用程序。 不再使用设计时元素视图体系结构。
System.Web.UI.Design.ControlDesigner DesignTimeHtmlRequiresLoadComplete 建议的替代方法是使用 ControlDesigner.SetViewFlags(ViewFlags.DesignTimeHtmlRequiresLoadComplete, true)
System.Web.UI.Design.ControlDesigner GetPersistInnerHtml 建议的替代方法是 ControlDesigner.GetPersistenceContent
System.Web.UI.Design.ControlDesigner IsDirty 建议的替代方法是使用 ControlDesigner.Tag.SetDirtyControlDesigner.Tag.IsDirty
System.Web.UI.Design.ControlDesigner IsPropertyBound 建议的替代方法是 ControlDesigner.DataBindings.Contains。 该 System.Web.UI.DataBindingCollection 类允许对与控件关联的数据绑定进行更多控制。
System.Web.UI.Design.ControlDesigner OnBindingsCollectionChanged 建议的替代方法是处理事件 ControlDesigner.DataBindings.ChangedDataBindingCollection属性返回的ControlDesigner.DataBindings集合允许对与控件关联的数据绑定进行更多控制。
System.Web.UI.Design.ControlDesigner OnControlResize 建议的替代方法是 OnComponentChanged,在更改控件的任何属性时调用。
System.Web.UI.Design.ControlDesigner RaiseResizeEvent 不建议使用此方法,因为重设大小由ControlDesigner.OnComponentChanged方法处理。
System.Web.UI.Design.ControlDesigner ReadOnly 建议的替代项改为从 System.Web.UI.Design.ContainerControlDesigner 继承,并使用 System.Web.UI.Design.EditableDesignerRegion。 区域允许更好地控制设计器中的内容。
System.Web.UI.Design.HtmlControlDesigner Behavior 建议的替代方法是 ControlDesigner.Tag
System.Web.UI.Design.HtmlControlDesigner DesignTimeElement 使用此属性将生成编译器错误。

错误:此属性不能再被引用,它的存在是为了支持现有已编译的应用程序。 设计时元素可能并不总是提供对标记中元素的访问权限。 System.Web.UI.Design.WebFormsRootDesigner 有用于处理客户端脚本和控件的可选方法。
System.Web.UI.Design.HtmlControlDesigner OnBehaviorAttached 建议的替代方法是 ControlDesigner.Tag
System.Web.UI.Design.HtmlControlDesigner OnBehaviorDetaching 建议的替代方法是 ControlDesigner.Tag
System.Web.UI.Design.HtmlControlDesigner OnBindingsCollectionChanged 建议的替代方法是处理 HtmlControlDesigner.DataBindings.Changed 事件。 DataBindingCollection属性返回的HtmlControlDesigner.DataBindings集合允许对与控件关联的数据绑定进行更多控制。
System.Web.UI.Design.HtmlControlDesigner ShouldCodeSerialize 不建议使用此属性,因为不支持代码序列化。
System.Web.UI.Design.TemplatedControlDesigner ActiveTemplateEditingFrame 不建议使用此属性,因为模板编辑在System.Web.UI.Design.ControlDesigner进行。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner CreateTemplateEditingFrame 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner EnterTemplateMode 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner ExitTemplateMode 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetCachedTemplateEditingVerbs 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetTemplateContainerDataItemProperty 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetTemplateContainerDataSource 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetTemplateEditingVerbs 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner GetTemplatePropertyParentType 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.TemplatedControlDesigner InTemplateMode 建议的替代方法是 ControlDesigner.InTemplateMode
System.Web.UI.Design.TemplatedControlDesigner OnBehaviorAttached 建议的替代方法是 ControlDesigner.Tag
System.Web.UI.Design.TemplatedControlDesigner SetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.BaseDataListDesigner GetTemplateContainerDataSource 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.BaseDataListDesigner OnAutoFormat 不推荐使用此方法,因为自动套用格式对话框由设计器主机启动。 ControlDesigner.AutoFormats 属性公开了可用的 AutoFormat 的列表。
System.Web.UI.Design.WebControls.DataGridDesigner CreateTemplateEditingFrame 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataGridDesigner GetCachedTemplateEditingVerbs 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataGridDesigner GetTemplateContainerDataItemProperty 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataGridDesigner GetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataGridDesigner GetTemplatePropertyParentType 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataGridDesigner SetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataListDesigner CreateTemplateEditingFrame 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataListDesigner GetCachedTemplateEditingVerbs 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataListDesigner GetTemplateContainerDataItemProperty 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataListDesigner GetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.DataListDesigner SetTemplateContent 不建议使用此方法,因为模板编辑是在System.Web.UI.Design.ControlDesigner中处理的。 为支持模板编辑,请在ControlDesigner.TemplateGroups属性中公开模板数据并调用ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)
System.Web.UI.Design.WebControls.PanelDesigner OnBehaviorAttached 建议的替代方法是 ControlDesigner.Tag
System.Windows.Forms.Design.ControlDesigner OnSetComponentDefaults 此方法已弃用。 请改用 ControlDesigner.InitializeNewComponent

System.dll

类型 成员 消息
Microsoft.CSharp.CSharpCodeProvider CreateCompiler 调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。
Microsoft.CSharp.CSharpCodeProvider CreateGenerator 调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。
Microsoft.VisualBasic.VBCodeProvider CreateCompiler 调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。
Microsoft.VisualBasic.VBCodeProvider CreateGenerator 调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。
Microsoft.Win32.SystemEvents LowMemory 此事件已弃用。
System.Uri Canonicalize 方法已弃用。 系统不使用它。
System.Uri CheckSecurity 方法已弃用。 系统不使用它。
System.Uri Escape 方法已弃用。 系统不使用它。
System.Uri EscapeString 方法已弃用。 请使用 GetComponents 方法或静态 EscapeUriString 方法对 URI 组件或字符串进行转义。
System.Uri IsBadFileSystemCharacter 方法已弃用。 系统不使用它。
System.Uri IsExcludedCharacter 方法已弃用。 系统不使用它。
System.Uri IsReservedCharacter 方法已弃用。 系统不使用它。
System.Uri MakeRelative 方法已弃用。 使用 Uri.MakeRelativeUri
System.Uri Parse 方法已弃用。 系统不使用它。
System.Uri Unescape 方法已弃用。 请使用 Uri.GetComponents 方法或静态 Uri.EscapeUriString 方法对 URI 组件或字符串进行转义。
System.Uri Uri(String, Boolean) 此构造函数已弃用。 使用 Uri(String)。 参数 dontEscape 已弃用,并且始终是 false
System.Uri Uri(Uri, String, Boolean) 此构造函数已弃用。 使用 Uri(Uri, String)。 参数 dontEscape 已弃用,并且始终是 false
System.CodeDom.Compiler.CodeDomProvider CreateCompiler 调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。 从 CodeDomProvider 继承的类仍然必须实现此接口,并且应排除此警告或将此方法标记为过时。
System.CodeDom.Compiler.CodeDomProvider CreateGenerator 调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。 从 CodeDomProvider 继承的类仍然必须实现此接口,并且应排除此警告或将此方法标记为过时。
System.CodeDom.Compiler.CodeDomProvider CreateParser 调用方不应使用 System.CodeDom.Compiler.ICodeParser 接口,而是应直接在类上使用 System.CodeDom.Compiler.CodeDomProvider 方法。 从 CodeDomProvider 继承的类仍然必须实现此接口,并且应排除此警告或将此方法标记为过时。
System.CodeDom.Compiler.CompilerParameters Evidence CAS 策略已过时,将在 .NET Framework 的未来版本中删除。 有关详细信息,请参阅 .NET Framework 4 中的安全更改
System.CodeDom.Compiler.CompilerResults Evidence CAS 策略已过时,将在 .NET Framework 的未来版本中删除。 有关详细信息,请参阅 .NET Framework 4 中的安全更改
System.Collections.Specialized.NameObjectCollectionBase NameObjectCollectionBase(IHashCodeProvider, IComparer) 请改用 NameObjectCollectionBase(IEqualityComparer)
System.Collections.Specialized.NameObjectCollectionBase NameObjectCollectionBase(Int32, IHashCodeProvider, IComparer) 请改用 NameObjectCollectionBase(Int32, IEqualityComparer)
System.Collections.Specialized.NameValueCollection NameValueCollection(IHashCodeProvider, IComparer) 请改用 NameValueCollection(IEqualityComparer)
System.Collections.Specialized.NameValueCollection NameValueCollection(Int32, IHashCodeProvider, IComparer) 请改用 NameValueCollection(Int32, IEqualityComparer)
System.ComponentModel.AsyncCompletedEventArgs AsyncCompletedEventArgs() 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.ComponentModel.MemberDescriptor GetInvokee 此方法已弃用。 请改用 MemberDescriptor.GetInvocationTarget
System.ComponentModel.TypeDescriptor ComNativeDescriptorHandler 此属性已弃用。 请改用类型说明提供程序来提供 COM 类型的类型信息。
System.ComponentModel.Design.DesignerTransactionCloseEventArgs DesignerTransactionCloseEventArgs(Boolean) 此构造函数已过时。 请改用 DesignerTransactionCloseEventArgs(Boolean, Boolean)
System.ComponentModel.Design.SelectionTypes Click 此值已弃用。 请改用 SelectionTypes.Primary
System.ComponentModel.Design.SelectionTypes MouseDown 此值已弃用。 不再支持它。
System.ComponentModel.Design.SelectionTypes MouseUp 此值已弃用。 不再支持它。
System.ComponentModel.Design.SelectionTypes Normal 此值已弃用。 请改用 SelectionTypes.Auto
System.ComponentModel.Design.SelectionTypes Valid 此值已弃用。 使用 System.Enum 类方法确定有效值,或使用类型转换器。
System.ComponentModel.Design.ViewTechnology Passthrough 此值已弃用。 请改用 ViewTechnology.Default
System.ComponentModel.Design.ViewTechnology WindowsForms 此值已弃用。 请改用 ViewTechnology.Default
System.Configuration.ConfigurationException ConfigurationException() 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String, Exception) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String, Exception, String, Int32) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String, Exception, XmlNode) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String, String, Int32) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException ConfigurationException(String, XmlNode) 此类已过时。 若要创建新的异常,请创建一个 System.Configuration.ConfigurationErrorsException
System.Configuration.ConfigurationException GetXmlNodeFilename 此类已过时。 请改用 ConfigurationErrorsException.GetFilename
System.Configuration.ConfigurationException GetXmlNodeLineNumber 此类已过时。 请改用 ConfigurationErrorsException.GetLineNumber(XmlNode)
System.Configuration.ConfigurationSettings AppSettings 此方法已过时。 它已被ConfigurationManager.AppSettings替换。
System.Configuration.ConfigurationSettings GetConfig 此方法已过时。 它已被ConfigurationManager.GetSection替换。
System.Diagnostics.EventLog CreateEventSource(String, String, String) 此方法已弃用。 请改用 CreateEventSource(EventSourceCreationData)
System.Diagnostics.EventLogEntry EventID 此属性已弃用。 请改用 EventLogEntry.InstanceId
System.Diagnostics.EventLogPermissionAccess Audit 此成员已弃用。 请改用 EventLogPermissionAccess.Administer
System.Diagnostics.EventLogPermissionAccess Browse 此成员已弃用。 请改用 EventLogPermissionAccess.Administer
System.Diagnostics.EventLogPermissionAccess Instrument 此成员已弃用。 请改用 EventLogPermissionAccess.Write
System.Diagnostics.InstanceDataCollection InstanceDataCollection 此构造函数已弃用。 使用 InstanceDataCollectionCollection.Item[] 来获取此集合的实例。
System.Diagnostics.InstanceDataCollectionCollection InstanceDataCollectionCollection 此构造函数已弃用。 使用 PerformanceCounterCategory.ReadCategory 来获取此集合的实例。
System.Diagnostics.PerformanceCounter DefaultFileMappingSize 此字段已弃用,未使用。 使用 machine.config 或应用程序配置文件设置 System.Diagnostics.PerformanceCounter 文件映射的大小。
System.Diagnostics.PerformanceCounterCategory Create(String, String, CounterCreationDataCollection) 此方法已弃用。 请改用 Create(String, String, PerformanceCounterCategoryType, CounterCreationDataCollection)
System.Diagnostics.PerformanceCounterCategory Create(String, String, String, String) 此方法已弃用。 请改用 Create(String, String, PerformanceCounterCategoryType, String, String)
System.Diagnostics.PerformanceCounterManager ICollectData.CloseData 此类已弃用。 请改为通过 PerformanceCounter 类使用性能计数器。
System.Diagnostics.PerformanceCounterManager ICollectData.CollectData 此类已弃用。 请改为通过 PerformanceCounter 类使用性能计数器。
System.Diagnostics.PerformanceCounterManager PerformanceCounterManager 此类已弃用。 请改为通过 System.Diagnostics.PerformanceCounter 类使用性能计数器。
System.Diagnostics.PerformanceCounterPermissionAccess Browse 此成员已弃用。 请改用 PerformanceCounterPermissionAccess.Read
System.Diagnostics.PerformanceCounterPermissionAccess Instrument 此成员已弃用。 请改用 PerformanceCounterPermissionAccess.Write
System.Diagnostics.Process NonpagedSystemMemorySize 此属性已弃用。 请改用 Process.NonpagedSystemMemorySize64
System.Diagnostics.Process PagedMemorySize 此属性已弃用。 请改用 PagedMemorySize64
System.Diagnostics.Process PagedSystemMemorySize 此属性已弃用。 请改用 Process.PagedSystemMemorySize64
System.Diagnostics.Process PeakPagedMemorySize 此属性已弃用。 请改用 Process.PeakPagedMemorySize64
System.Diagnostics.Process PeakVirtualMemorySize 此属性已弃用。 请改用 Process.PeakVirtualMemorySize64
System.Diagnostics.Process PeakWorkingSet 此属性已弃用。 请改用 Process.PeakWorkingSet64
System.Diagnostics.Process PrivateMemorySize 此属性已弃用。 请改用 Process.PrivateMemorySize64
System.Diagnostics.Process VirtualMemorySize 此属性已弃用。 请改用 Process.VirtualMemorySize64
System.Diagnostics.Process WorkingSet 此属性已弃用。 请改用 Process.WorkingSet64
System.Net.Dns BeginGetHostByName BeginGetHostByName 此类型已过时,请改用 Dns.BeginGetHostEntry(String, AsyncCallback, Object)
System.Net.Dns BeginResolve(String, AsyncCallback, Object) BeginResolve(String, AsyncCallback, Object) 此类型已过时,请改用 Dns.BeginGetHostEntry(String, AsyncCallback, Object)
System.Net.Dns EndGetHostByName EndGetHostByName 此类型已过时,请改用 Dns.EndGetHostEntry
System.Net.Dns EndResolve EndResolve 此类型已过时,请改用 Dns.EndGetHostEntry
System.Net.Dns GetHostByAddress(IPAddress) GetHostByAddress(IPAddress) 此类型已过时,请改用 Dns.GetHostEntry(IPAddress)
System.Net.Dns GetHostByAddress(String) GetHostByAddress(String) 此类型已过时,请改用 Dns.GetHostEntry(String)
System.Net.Dns GetHostByName GetHostByName 此类型已过时,请改用 Dns.GetHostEntry(String)
System.Net.Dns Resolve Resolve 此类型已过时,请改用 Dns.GetHostEntry(String)
System.Net.FileWebRequest FileWebRequest 此类型的序列化已过时。
System.Net.FileWebResponse FileWebResponse 此类型的序列化已过时。
System.Net.HttpWebRequest HttpWebRequest() 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.HttpWebRequest HttpWebRequest(SerializationInfo, StreamingContext) 此类型的序列化已过时。
System.Net.HttpWebResponse HttpWebResponse() 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.HttpWebResponse HttpWebResponse(SerializationInfo, StreamingContext) 此类型的序列化已过时。
System.Net.IPAddress Address 此属性已弃用。 它依赖于地址族。 请改用 IPAddress.Equals 方法来执行比较。
System.Net.ServicePointManager CertificatePolicy CertificatePolicy 此类型已过时。 请改用 ServicePointManager.ServerCertificateValidationCallback
System.Net.WebClient AllowReadStreamBuffering 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WebClient AllowWriteStreamBuffering 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WebClient System.Net.WebClient.OnWriteStreamClosed 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WebClient WriteStreamClosed 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WebProxy GetDefaultProxy 此方法已弃用。 默认情况下,使用为你选择的代理。
System.Net.WebRequest CreatorInstance 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WebRequest RegisterPortableWebRequestCreator 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WriteStreamClosedEventArgs Error 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.WriteStreamClosedEventArgs WriteStreamClosedEventArgs 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.Mail.MailMessage ReplyTo ReplyTo 此类型已过时。 将 MailMessage.ReplyToList 替换为,它可以接受多个地址。
System.Net.NetworkInformation.NetworkChange NetworkChange() 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.NetworkInformation.NetworkChange RegisterNetworkChange(NetworkChange) 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.Sockets.Socket SupportsIPv4 SupportsIPv4 此类型已过时。 请改用 Socket.OSSupportsIPv4
System.Net.Sockets.Socket SupportsIPv6 SupportsIPv6 此类型已过时。 请改用 Socket.OSSupportsIPv6
System.Net.Sockets.SocketAsyncEventArgs SocketClientAccessPolicyProtocol 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Net.Sockets.TcpListener TcpListener(Int32) 此方法已弃用。 请改用 TcpListener(IPAddress, Int32)
System.Net.WebSockets.WebSocket IsApplicationTargeting45 在 .NET Framework 4.5 中首次被废弃。

此成员仅供内部使用,将在 .NET Framework 的未来版本中删除。 不要打电话给它。
System.Security.Claims.DynamicRoleClaimProvider AddDynamicRoleClaims 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

使用System.Security.Claims.ClaimsAuthenticationManager将声明添加到ClaimsIdentity

System.Drawing.dll

类型 成员 消息
System.Drawing.FontFamily GetFamilies 不要使用 GetFamilies 该方法;请改用 FontFamily.Families 属性。
System.Drawing.Imaging.EncoderParameter EncoderParameter(Encoder, Int32, Int32, Int32) 在 .NET Framework 4.5 中首次被废弃。

此构造函数已弃用。 使用 EncoderParameter(Encoder, Int32, EncoderParameterValueType, IntPtr)

System.Messaging.dll

System.ServiceModel.dll

类型 成员 消息
System.ServiceModel.BasicHttpBinding EnableHttpCookieContainer 在 .NET Framework 4.5 中首次被废弃。

此属性已过时。 若要启用 Http CookieContainer,请改用该 HttpBindingBase.AllowCookies 属性。
System.ServiceModel.Configuration.BindingsSection NetPeerTcpBinding 在 .NET Framework 4.5 中首次被废弃。

对等通道功能已过时,将来将被删除。
System.ServiceModel.Dispatcher.ClientOperationCompatBase ParameterInspectors 在 .NET Framework 4.5 中首次被废弃。

使用此类型将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.ServiceModel.Dispatcher.ClientRuntimeCompatBase MessageInspectors 在 .NET Framework 4.5 中首次被废弃。

使用此类型将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.ServiceModel.Dispatcher.ClientRuntimeCompatBase Operations 在 .NET Framework 4.5 中首次被废弃。

使用此类型将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.ServiceModel.Security.WindowsClientCredential AllowNtlm 此属性已弃用,并且仅用于向后兼容。 本地计算机策略将用于确定是否应使用 NTLM。

System.ServiceModel.Discovery.dll

类型 成员 消息
System.ServiceModel.Discovery.UdpAnnouncementEndpoint TransportSettings 在 .NET Framework 4.5 中首次被废弃。

属性 TransportSettings 已过时。 请考虑使用 System.ServiceModel.Channels.UdpTransportBindingElement 来设置传输属性。
System.ServiceModel.Discovery.UdpDiscoveryEndpoint TransportSettings 在 .NET Framework 4.5 中首次被废弃。

属性 TransportSettings 已过时。 请考虑使用 System.ServiceModel.Channels.UdpTransportBindingElement 来设置传输属性。

System.Web.DataVisualization.dll

System.Web.dll

类型 成员 消息
System.Web.HttpContext GetAppConfig 建议的替代项为 System.Web.dll 中的 WebConfigurationManager.GetWebApplicationSection
System.Web.HttpContext GetConfig 建议的替代项为 System.Web.dll 中的 HttpContext.GetSection
System.Web.HttpUtility UrlEncodeUnicode 在 .NET Framework 4.5 中首次被废弃。

此方法生成不符合标准的输出,并且存在互作性问题。 首选的替代项是 UrlEncode(String)
System.Web.HttpUtility UrlEncodeUnicodeToBytes 在 .NET Framework 4.5 中首次被废弃。

此方法生成不符合标准的输出,并且存在互作性问题。 首选的替代项是 UrlEncodeToBytes(String)
System.Web.Configuration.AuthenticationMode Passport 此字段已过时。 Passport 身份验证产品不再受支持,已被 Microsoft 帐户取代。
System.Web.Configuration.AuthenticationSection Passport 此属性已过时。 Passport 身份验证产品不再受支持,已被 Microsoft 帐户取代。
System.Web.Configuration.HttpCapabilitiesBase JavaScript 建议的替代方法是 HttpCapabilitiesBase.EcmaScriptVersion 属性。 Version.Major大于或等于 1 的版本值意味着 JavaScript 支持。
System.Web.Configuration.SystemWebSectionGroup MobileControls System.Web.Mobile.dll 已过时。
System.Web.Routing.UrlRoutingModule PostMapRequestHandler 此方法已过时。 重写 Init 方法以使用 PostMapRequestHandler 事件。
System.Web.Security.FormsAuthentication Authenticate 在 .NET Framework 4.5 中首次被废弃。

建议的替代方法是使用 System.Web.Security.Membership API,例如 Membership.ValidateUser
System.Web.Security.FormsAuthentication HashPasswordForStoringInConfigFile 在 .NET Framework 4.5 中首次被废弃。

建议的替代方法是使用 System.Web.Security.Membership API,例如 Membership.CreateUser
System.Web.Security.MachineKey Decode 在 .NET Framework 4.5 中首次被废弃。

此方法已过时,仅用于与现有代码的兼容性。 建议新代码改用 ProtectUnprotect 方法。
System.Web.Security.MachineKey Encode 在 .NET Framework 4.5 中首次被废弃。

此方法已过时,仅用于与现有代码的兼容性。 建议新代码改用 ProtectUnprotect 方法。
System.Web.UI.Page FileDependencies 建议的替代方法是 HttpResponse.AddFileDependencies
System.Web.UI.Page GetPostBackClientEvent 建议的替代方法是 ClientScriptManager.GetPostBackEventReference
System.Web.UI.Page GetPostBackClientHyperlink 建议的替代方法是 ClientScriptManager.GetPostBackClientHyperlink
System.Web.UI.Page GetPostBackEventReference(Control) 建议的替代方法是 ClientScriptManager.GetPostBackEventReference(Control, String)
System.Web.UI.Page GetPostBackEventReference(Control, String) 建议的替代方法是 ClientScriptManager.GetPostBackEventReference
System.Web.UI.Page IsClientScriptBlockRegistered 建议的替代方法是 ClientScriptManager.IsClientScriptBlockRegistered
System.Web.UI.Page IsStartupScriptRegistered 建议的替代方法是 ClientScriptManager.IsStartupScriptRegistered
System.Web.UI.Page RegisterArrayDeclaration 建议的替代方法是 ClientScriptManager.RegisterArrayDeclaration
System.Web.UI.Page RegisterClientScriptBlock 建议的替代方法是 ClientScriptManager.RegisterClientScriptBlock
System.Web.UI.Page RegisterHiddenField 建议的替代方法是 ClientScriptManager.RegisterHiddenField
System.Web.UI.Page RegisterOnSubmitStatement 建议的替代方法是 ClientScriptManager.RegisterOnSubmitStatement
System.Web.UI.Page RegisterStartupScript 建议的替代方法是 ClientScriptManager.RegisterStartupScript
System.Web.UI.Page SmartNavigation 建议的替代方法是 Page.SetFocusPage.MaintainScrollPositionOnPostBack
System.Web.UI.TemplateControl AutoHandlers 不建议使用此属性,因为它不再有用。
System.Web.UI.WebControls.GridView CreateAutoGeneratedColumn 在 .NET Framework 4.5 中首次被废弃。

此方法用于保留后向兼容性。 不再使用此 API。
System.Web.UI.WebControls.Xml Document 建议的替代方法是 Xml.XPathNavigator 属性。 创建System.Xml.XPath.XPathDocument并调用XPathDocument.CreateNavigator以创建System.Xml.XPath.XPathNavigator

System.Web.DynamicData.dll

类型 成员 消息
System.Web.DynamicData.DynamicDataExtensions EnablePersistedSelection 在数据绑定控件(如 EnablePersistedSelectionSystem.Web.UI.WebControls.GridView)上使用 System.Web.UI.WebControls.ListView 属性。

System.Web.Extensions.dll

System.Web.Services.dll

类型 成员 消息
System.Web.Services.Discovery.DiscoveryClientProtocol LoadExternals 此方法将从将来的版本中删除。 资源发现不再需要方法调用。
System.Web.Services.Protocols.SoapHeaderAttribute Required 此属性将从将来的版本中删除。 将不再强制要求在 SOAP 消息中显示特定标头。

System.Windows.Forms.dll

类型 成员 消息
System.Windows.Forms.AccessibleStates Valid 此枚举值已弃用。 没有替代项。
System.Windows.Forms.ComboBox AddItemsCore 此方法已弃用。 没有替代项。
System.Windows.Forms.Control RenderRightToLeft 此属性已弃用。 请改用 Control.RightToLeft
System.Windows.Forms.Control Scale(Single) 此方法已弃用。 请改用该方法 Control.Scale(SizeF)
System.Windows.Forms.Control Scale(Single, Single) 此方法已弃用。 请改用该方法 Control.Scale(SizeF)
System.Windows.Forms.Form ApplyAutoScaling 此方法已弃用。 请改用该方法 PerformAutoScale
System.Windows.Forms.Form AutoScale 此属性已弃用。 ContainerControl.AutoScaleMode请改用 属性。
System.Windows.Forms.Form GetAutoScaleSize 此方法已弃用。 ContainerControl.AutoScaleDimensions请改用 属性。
System.Windows.Forms.Label RenderTransparent 此属性已弃用。 请改用 BackColor
System.Windows.Forms.ListBox AddItemsCore 此方法已弃用。 没有替代项。
System.Windows.Forms.PrintPreviewDialog AutoScaleBaseSize 此属性已弃用。 ContainerControl.AutoScaleDimensions请改用 属性。

System.Xaml.dll

类型 成员 消息
System.Windows.Markup.MarkupExtensionReturnTypeAttribute ExpressionType XAML 分析程序不会使用此功能。 请参阅 System.Windows.Markup.XamlSetMarkupExtensionAttribute
System.Windows.Markup.MarkupExtensionReturnTypeAttribute MarkupExtensionReturnTypeAttribute(Type, Type) XAML 分析器不使用该 expressionType 参数。 若要指定预期的返回类型,请使用 MarkupExtensionReturnTypeAttribute(Type)。 若要为表达式类型指定自定义处理,请使用 System.Windows.Markup.XamlSetMarkupExtensionAttribute

System.Xml.dll

类型 成员 消息
System.Xml.ValidationType Auto 验证类型应指定为 ValidationType.DTDValidationType.Schema
System.Xml.ValidationType XDR 通过 System.Xml.XmlValidatingReader 验证 XDR 已过时。
System.Xml.XmlConvert ToDateTime(String) 使用 XmlConvert.ToDateTime(String, XmlDateTimeSerializationMode)
System.Xml.XmlConvert ToString(DateTime) 使用 XmlConvert.ToString(DateTime, XmlDateTimeSerializationMode)
System.Xml.XmlReaderSettings ProhibitDtd XmlReaderSettings.DtdProcessing请改用 属性。
System.Xml.XmlReaderSettings XmlReaderSettings(XmlResolver) 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

此 API 旨在支持 .NET Framework 的底层架构,而不是直接供用户代码使用。
System.Xml.XmlTextReader ProhibitDtd XmlTextReader.DtdProcessing请改用 属性。
System.Xml.Schema.XmlSchema Compile(ValidationEventHandler) 请使用 XmlSchemaSet 进行架构编译和验证。
System.Xml.Schema.XmlSchema Compile(ValidationEventHandler, XmlResolver) 请使用 XmlSchemaSet 进行架构编译和验证。
System.Xml.Schema.XmlSchemaAttribute AttributeType 此属性已弃用。 请使用 XmlSchemaAttribute.AttributeSchemaType 属性,它返回强类型的属性类型。
System.Xml.Schema.XmlSchemaElement ElementType 此属性已弃用。 请使用 XmlSchemaElement.ElementSchemaType 属性,它返回强类型的元素类型。
System.Xml.Schema.XmlSchemaType BaseSchemaType 此属性已弃用。 使用 XmlSchemaType.BaseXmlSchemaType 属性,该属性返回一个强类型基架构类型。
System.Xml.Serialization.CodeIdentifier CodeIdentifier 此类将不会获取构造,因为它仅包含静态方法。
System.Xml.Serialization.XmlSerializer FromMappings(XmlMapping[], Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 XmlSerializer.FromMappings 参数的 System.Security.Policy.Evidence 的重载。
System.Xml.Serialization.XmlSerializer XmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 XmlSerializer 参数的 System.Security.Policy.Evidence 构造函数重载。
System.Xml.Serialization.XmlSerializerFactory CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence) 此方法已过时,将在 .NET Framework 的未来版本中删除。 请使用不采用 XmlSerializerFactory.CreateSerializer 参数的 System.Security.Policy.Evidence 的重载。

IEHost.dll 和 IEExec.exe

已从 .NET Framework 中删除 IEHost.dll 和 IEExec.exe 程序集。 其所有类型和成员都已过时,在 .NET Framework 4.5 及更高版本中不受支持。 这些程序集用于托管 Windows 窗体控件并在 Internet Explorer 中运行可执行文件。 此技术的替代项包括 ClickOnce、XAML 浏览器应用程序(XBAP)和 Microsoft Silverlight。

ISymWrapper.dll

类型 成员 消息
System.Diagnostics.SymbolStore.SymBinder GetReader(Int32, String, String) 建议的替代方法是 SymBinder.GetReader(IntPtr, String, String)ISymbolBinder1.GetReader 采用导入程序接口指针作为 System.IntPtr 替代 System.Int32,因此适用于 32 位和 64 位体系结构。

Microsoft.Build.Conversion.v4.0.dll

Microsoft.Build.Engine.dll

类型 成员 消息
Microsoft.Build.BuildEngine.Engine BinPath 避免设置 BinPath。 如果仅作为 BinPath 传入 .NET Framework 位置,则无需其他操作。 否则,请改为在注册表或配置文件中定义工具集,或者通过向引擎Microsoft.Build.BuildEngine.ToolsetCollection添加元素来使用自定义BinPath
Microsoft.Build.BuildEngine.Engine Engine(String) 如果仅作为 BinPath 传入 .NET Framework 位置,则只要更改为无参数 Engine() 构造函数即可。 否则,可以在注册表或配置文件中定义自定义工具集,或向引擎 Microsoft.Build.BuildEngine.ToolsetCollection的元素添加元素。 然后改用 Engine()Engine(ToolsetDefinitionLocations) 构造函数。

Microsoft.Build.Framework.dll

类型 成员 消息
Microsoft.Build.Framework.XamlTypes.ContentType ItemGroupName 在 .NET Framework 4.5 中首次被废弃。

使用此成员将生成编译器错误。

ContentType.ItemType请改用 属性。

Microsoft.Build.Utilities.v4.0.dll

Microsoft.Data.Entity.Build.Tasks.dll

类型 成员 消息
Microsoft.Data.Entity.Build.Tasks.EntityDeploy EntityDataModelEmbeddedResources 在 .NET Framework 4.5 中首次被废弃。

仅用于 3.5 版的向后兼容性。

Microsoft.VisualBasic.dll

类型 成员 消息
Microsoft.VisualBasic.FileSystem FilePut(Object, Object, Object) 此成员已弃用。 使用FileSystem.FilePutObject来写入Object类型,或将FileNumberRecordNumber强制转换为Int32以编写非对象类型。
Microsoft.VisualBasic.CompilerServices.Conversions FallbackUserDefinedConversion 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackCall 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackGet 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackIndexSet 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackIndexSetComplex 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackInvokeDefault1 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackInvokeDefault2 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackSet 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.NewLateBinding FallbackSetComplex 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.CompilerServices.Operators FallbackInvokeUserDefinedOperator 使用此成员将生成编译器错误。

请勿使用此方法。
Microsoft.VisualBasic.MyServices.RegistryProxy DynData DynData注册表项仅适用于 Win9x,而该版本的 .NET Framework 不支持 Win9x。 请改用 PerformanceData 注册表项。 此属性将从 .NET Framework 的未来版本中删除。

另请参阅