.NET Framework 4 中的过时成员

更新:2010 年 8 月

以下各表列出了已声明过时的类型成员(基于其所在的程序集)。 这些表按如下方式组织:

  • 系统程序集中的过时成员

    • 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

  • Microsoft 程序集中的过时成员

    • IEHost.dll 和 IEExec.exe

    • ISymWrapper.dll

    • Microsoft.Build.Conversion.v4.0.dll

    • Microsoft.Build.Engine.dll

    • Microsoft.VisualBasic.dll

系统程序集中的过时成员

以下各表列出了系统程序集中的过时成员。 这些程序集用于面向 .NET Framework 的通用应用程序开发。

mscorlib.dll

类型

成员

消息

System.Enum

ToString(IFormatProvider)

不使用 provider 参数。 请使用 Enum.ToString()

System.Enum

ToString(String, IFormatProvider)

不使用 provider 参数。 请使用 Enum.ToString()

System.Activator

CreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Activator.CreateInstance 的重载。

System.Activator

CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Activator.CreateInstanceFrom 的重载。

System.Activator

CreateInstanceFrom(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Activator.CreateInstanceFrom 的重载。

System.Activator

CreateInstance(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Activator.CreateInstance 的重载。

System.AppDomain

CreateInstanceFromAndUnwrap(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.CreateInstanceFromAndUnwrap 的重载。

System.AppDomain

ExecuteAssembly(String, Evidence, String[], Byte[], AssemblyHashAlgorithm)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssembly 的重载。

System.AppDomain

SetAppDomainPolicy

AppDomain 策略级别已过时,并将从 .NET Framework 的未来版本中移除。

System.AppDomain

ExecuteAssemblyByName(AssemblyName, Evidence, String[])

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssemblyByName 的重载。

System.AppDomain

Load(Byte[], Byte[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.Load 的重载。

System.AppDomain

ExecuteAssembly(String, Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssembly 的重载。

System.AppDomain

AppendPrivatePath

AppendPrivatePath 已弃用。 请改为研究使用 AppDomainSetup.PrivateBinPath

System.AppDomain

CreateInstanceAndUnwrap(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.CreateInstanceFromAndUnwrap 的重载。

System.AppDomain

Load(String, Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.Load 的重载。

System.AppDomain

ClearShadowCopyPath

ClearShadowCopyPath 已弃用。 请改为研究如何使用 AppDomainSetup.ShadowCopyDirectories

System.AppDomain

Load(AssemblyName, Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.Load 的重载。

System.AppDomain

SetCachePath

SetCachePath 已弃用。 请改为研究使用 AppDomainSetup.CachePath

System.AppDomain

CreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.CreateInstance 的重载。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

SetShadowCopyFiles

SetShadowCopyFiles 已弃用。 请改为研究使用 AppDomainSetup.ShadowCopyFiles

System.AppDomain

ExecuteAssemblyByName(String, Evidence, String[])

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssemblyByName 的重载。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

ClearPrivatePath

ClearPrivatePath 已弃用。 请改为研究使用 AppDomainSetup.PrivateBinPath

System.AppDomain

ExecuteAssembly(String, Evidence, String[])

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssembly 的重载。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean, IEnumerable<CustomAttributeBuilder>)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.DefineDynamicAssembly 的重载。

System.AppDomain

CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.CreateInstanceFrom 的重载。

System.AppDomain

GetCurrentThreadId

GetCurrentThreadId 已弃用,这是因为当托管线程在纤程(aka 轻型线程)上运行时,它不会提供稳定的 ID。 若要为托管线程获取稳定的标识符,请使用 Thread.ManagedThreadId 属性。

System.AppDomain

SetDynamicBase

SetDynamicBase 已弃用。 请改为研究使用 AppDomainSetup.DynamicBase

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

SetShadowCopyPath

SetShadowCopyPath 已弃用。 请改为研究如何使用 AppDomainSetup.ShadowCopyDirectories

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet)

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.AppDomain

ExecuteAssemblyByName(String, Evidence)

使用沙盒证据的方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 AppDomain.ExecuteAssemblyByName 的重载。

System.LoaderOptimization

DomainMask

此方法已弃用。 请改用 Assembly.Load

System.LoaderOptimization

DisallowBindings

此方法已弃用。 请改用 Assembly.Load

System.Threading.WaitHandle

Handle

请改用 WaitHandle.SafeWaitHandle 属性。

System.Threading.Overlapped

EventHandle

此属性不是 64 位兼容的。 请改用 Overlapped.EventHandleIntPtr

System.Threading.Overlapped

Pack(IOCompletionCallback)

此方法是不安全的。 请改用 Overlapped.Pack(IOCompletionCallback, Object)

System.Threading.Overlapped

Overlapped(Int32, Int32, Int32, IAsyncResult)

此构造函数不是 64 位兼容的。 请使用采用事件句柄的 System.IntPtr 的 Overlapped.Overlapped(Int32, Int32, IntPtr, IAsyncResult) 构造函数。

System.Threading.Overlapped

UnsafePack(IOCompletionCallback)

此方法是不安全的。 请改用 Overlapped.UnsafePack(IOCompletionCallback, Object)

System.Threading.Thread

Resume

Resume 已弃用。 请使用 System.Threading 中的其他类(如 MonitorMutex、Event 和 Semaphore)以同步线程或保护资源。

System.Threading.Thread

SetCompressedStack

SetCompressedStack 不再受支持。 请使用 System.Threading.CompressedStack 类。

System.Threading.Thread

GetCompressedStack

GetCompressedStack 不再受支持。 请使用 System.Threading.CompressedStack 类。

System.Threading.Thread

ApartmentState

ApartmentState 属性已弃用。 请改用 Thread.GetApartmentStateThread.SetApartmentStateThread.TrySetApartmentState

System.Threading.Thread

Suspend

Suspend 已弃用。 请使用 System.Threading 中的其他类(如 MonitorMutex、Event 和 Semaphore)以同步线程或保护资源。

System.Threading.ThreadPool

BindHandle(IntPtr)

BindHandle(IntPtr) 已弃用。 请改用 ThreadPool.BindHandle(SafeHandle)

System.Collections.Hashtable

Hashtable(IDictionary, Single, IHashCodeProvider, IComparer)

请改用 Hashtable.Hashtable(IDictionary, Single, IEqualityComparer)。

System.Collections.Hashtable

Hashtable(IDictionary, IHashCodeProvider, IComparer)

请改用 Hashtable.Hashtable(IDictionary, IEqualityComparer)。

System.Collections.Hashtable

Hashtable(Int32, IHashCodeProvider, IComparer)

请改用 Hashtable.Hashtable(Int32, IEqualityComparer)。

System.Collections.Hashtable

Hashtable(IHashCodeProvider, IComparer)

请改用 Hashtable.Hashtable(IEqualityComparer)。

System.Collections.Hashtable

Hashtable(Int32, Single, IHashCodeProvider, IComparer)

请改用 Hashtable.Hashtable(Int32, Single, IEqualityComparer)。

System.Diagnostics.Debugger

Debugger

不要创建 Debugger 类的实例。 请改为对此类型直接调用静态方法。

System.Diagnostics.SymbolStore.ISymbolBinder

GetReader

建议的替代项为 ISymbolBinder1.GetReader,它采用导入程序接口指针作为 IntPtr 而非 Int32,因此它可同时用于 32 位和 64 位体系结构。

System.Reflection.Assembly

Load(String, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.Load 的重载。

System.Reflection.Assembly

LoadWithPartialName(String)

此方法已弃用。 请改用 Assembly.Load

System.Reflection.Assembly

LoadWithPartialName(String, Evidence)

此方法已弃用。 请改用 Assembly.Load

System.Reflection.Assembly

Load(Byte[], Byte[], Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.Load 的重载。

System.Reflection.Assembly

Load(AssemblyName, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.Load 的重载。

System.Reflection.Assembly

LoadFrom(String, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.LoadFrom 的重载。

System.Reflection.Assembly

LoadFile(String, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.LoadFile 的重载。

System.Reflection.Assembly

LoadFrom(String, Evidence, Byte[], AssemblyHashAlgorithm)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 Assembly.LoadFrom 的重载。

System.Reflection.AssemblyFlagsAttribute

AssemblyFlagsAttribute(Int32)

此构造函数已弃用。 请改用 AssemblyFlagsAttribute.AssemblyFlagsAttribute(AssemblyNameFlags)。

System.Reflection.AssemblyFlagsAttribute

AssemblyFlagsAttribute(UInt32)

此构造函数已弃用。 请改用 AssemblyFlagsAttribute.AssemblyFlagsAttribute(AssemblyNameFlags)。

System.Reflection.AssemblyFlagsAttribute

Flags

此属性已弃用。 请改用 AssemblyFlagsAttribute.AssemblyFlags

System.Globalization.CultureTypes

FrameworkCultures

此值已弃用。 请使用 System.Globalization.CultureTypes 中的其他值。

System.Globalization.CultureTypes

WindowsOnlyCultures

此值已弃用。 请使用 System.Globalization.CultureTypes 中的其他值。

Microsoft.Win32.Registry

DynData

DynData 注册表项仅适用于 Win9x,现已不再受 CLR 支持。 在基于 NT 的操作系统上,请改用 Registry.PerformanceData 注册表项。

System.Security.Policy.Evidence

AddAssembly

此方法已过时。 请改用 Evidence.AddAssemblyEvidence<T>

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

AddHost

此方法已过时。 请改用 Evidence.AddHostEvidence<T>

System.Security.Policy.Evidence

GetEnumerator

GetEnumerator 已过时。 请改用 Evidence.GetHostEnumeratorEvidence.GetAssemblyEnumerator

System.Security.Policy.Evidence

Evidence(Object[], Object[])

此构造函数已过时。 请改用 Evidence.Evidence(EvidenceBase[], EvidenceBase[]) 构造函数。

System.Security.Policy.PolicyLevel

CreateAppDomainLevel

AppDomain 策略级别已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.Policy.PolicyLevel

RemoveFullTrustAssembly(StrongNameMembershipCondition)

由于所有 GAC 程序集始终都能完全信任,因此完全信任列表不再有意义。 您应在 GAC 中安装任何用在安全策略中的程序集,以确保它们受信任。

System.Security.Policy.PolicyLevel

FullTrustAssemblies

由于所有 GAC 程序集始终都能完全信任,因此完全信任列表不再有意义。 您应在 GAC 中安装任何用在安全策略中的程序集,以确保它们受信任。

System.Security.Policy.PolicyLevel

AddFullTrustAssembly(StrongName)

由于所有 GAC 程序集始终都能完全信任,因此完全信任列表不再有意义。 您应在 GAC 中安装任何用在安全策略中的程序集,以确保它们受信任。

System.Security.Policy.PolicyLevel

AddFullTrustAssembly(StrongNameMembershipCondition)

由于所有 GAC 程序集始终都能完全信任,因此完全信任列表不再有意义。 您应在 GAC 中安装任何用在安全策略中的程序集,以确保它们受信任。

System.Security.Policy.PolicyLevel

RemoveFullTrustAssembly(StrongName)

由于所有 GAC 程序集始终都能完全信任,因此完全信任列表不再有意义。 您应在 GAC 中安装任何用在安全策略中的程序集,以确保它们受信任。

System.Runtime.InteropServices.Marshal

GetThreadFromFiberCookie

GetThreadFromFiberCookie 方法已弃用。 请使用宿主 API 来执行此操作。

System.Runtime.InteropServices.Marshal

ReleaseThreadCache

此 API 不执行任何操作,并将从 CLR 的未来版本中移除。

System.Runtime.InteropServices.Marshal

GetManagedThunkForUnmanagedMethodPtr

The GetManagedThunkForUnmanagedMethodPtr 方法已弃用并将从未来版本中移除。

System.Runtime.InteropServices.Marshal

GetTypeInfoName(UCOMITypeInfo)

请改用 Marshal.GetTypeInfoName(ITypeInfo)

System.Runtime.InteropServices.Marshal

GetTypeLibLcid(UCOMITypeLib)

请改用 Marshal.GetTypeLibLcid(ITypeLib)

System.Runtime.InteropServices.Marshal

GetTypeLibName(UCOMITypeLib)

请改用 Marshal.GetTypeLibName(ITypeLib)

System.Runtime.InteropServices.Marshal

GetTypeLibGuid(UCOMITypeLib)

请改用 Marshal.GetTypeLibGuid(ITypeLib)

System.Runtime.InteropServices.Marshal

GetUnmanagedThunkForManagedMethodPtr

The GetUnmanagedThunkForManagedMethodPtr 方法已弃用并将从未来版本中移除。

System.Runtime.InteropServices.RuntimeEnvironment

RuntimeEnvironment

不要创建 System.Runtime.InteropServices.RuntimeEnvironment 类的实例。 请改为对此类型直接调用静态方法。

System.IO.FileStream

FileStream(IntPtr, FileAccess, Boolean, Int32, Boolean)

此构造函数已弃用。 请改用 FileStream.FileStream(SafeFileHandle, FileAccess, Int32, Boolean),并可在需要时创建新的 Microsoft.Win32.SafeHandles.SafeFileHandle 并使 ownsHandle=false。

System.IO.FileStream

FileStream(IntPtr, FileAccess)

此构造函数已弃用。 请改用 FileStream.FileStream(SafeFileHandle, FileAccess)。

System.IO.FileStream

Handle

此属性已弃用。 请改用 FileStream.SafeFileHandle 属性。

System.IO.FileStream

FileStream(IntPtr, FileAccess, Boolean, Int32)

此构造函数已弃用。 请改用 FileStream.FileStream(SafeFileHandle, FileAccess, Int32),并可在需要时创建新的 Microsoft.Win32.SafeHandles.SafeFileHandle 并使 ownsHandle=false。

System.IO.FileStream

FileStream(IntPtr, FileAccess, Boolean)

此构造函数已弃用。 请改用 FileStream.FileStream(SafeFileHandle, FileAccess),并可在需要时创建新的 Microsoft.Win32.SafeHandles.SafeFileHandle 并使 ownsHandle=false。

System.IO.Path

InvalidPathChars

请改用 Path.GetInvalidPathCharsPath.GetInvalidFileNameChars

System.Security.CodeAccessPermission

RevertDeny

Deny 已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.CodeAccessPermission

Deny

Deny 已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.Permissions.SecurityAction

Deny

Deny 已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.Permissions.SecurityAction

RequestRefuse

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.Security.Permissions.SecurityAction

RequestMinimum

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.Security.Permissions.SecurityAction

RequestOptional

程序集级别声明性安全已过时,默认情况下不再由 CLR 强制实施。

System.Security.Permissions.FileIOPermissionAttribute

All

请改用 FileIOPermissionAttribute.ViewAndModify 属性。

System.Security.Permissions.ReflectionPermissionAttribute

TypeInformation

此 API 已弃用。

System.Security.Permissions.ReflectionPermissionAttribute

ReflectionEmit

CLR 不再使用此权限。

System.Security.Permissions.RegistryPermissionAttribute

All

请改用 RegistryPermissionAttribute.ViewAndModify 属性。

System.Security.Permissions.ReflectionPermissionFlag

TypeInformation

此 API 已弃用。

System.Security.Permissions.ReflectionPermissionFlag

AllFlags

此权限已弃用。 请使用 PermissionState.Unrestricted 获取完全访问权限。

System.Security.Permissions.ReflectionPermissionFlag

ReflectionEmit

CLR 不再使用此权限。

System.Security.SecurityCriticalAttribute

Scope

System.Security.SecurityCriticalScope 仅用于实现 .NET 2.0 透明度兼容性。

System.Security.HostSecurityManagerOptions

HostPolicyLevel

AppDomain 策略级别已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.HostSecurityManager

DomainPolicy

AppDomain 策略级别已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.PermissionSet

ConvertPermissionSet

此方法已过时,应不再使用。

System.Security.PermissionSet

Deny

Deny 已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

SecurityEnabled

由于不再能够禁用安全性,因此 SecurityEnabled 属性不再起作用。

System.Security.SecurityManager

SavePolicy

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

LoadPolicyLevelFromFile

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

ResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet%)

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

ResolvePolicy(Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

PolicyHierarchy

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

ResolvePolicy(Evidence[])

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

CheckExecutionRights

由于不再能够禁用执行权限检查,因此 CheckExecutionRights 属性不再起作用。

System.Security.SecurityManager

ResolvePolicyGroups

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

IsGranted

IsGranted 已过时,并将从 .NET Framework 的未来版本中移除。 请改用 AppDomain.PermissionSetAssembly.PermissionSet 属性。

System.Security.SecurityManager

LoadPolicyLevelFromString

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

ResolveSystemPolicy

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Security.SecurityManager

SavePolicyLevel

此方法已过时,并将从 .NET Framework 的未来版本中移除。

System.Runtime.Remoting.Channels.ChannelServices

RegisterChannel

请改用 ChannelServices.RegisterChannel

System.Runtime.Remoting.Lifetime.LifetimeServices

LifetimeServices

不要创建 LifetimeServices 类的实例。 请改为对此类型直接调用静态方法

System.Runtime.Remoting.RemotingConfiguration

Configure(String)

请改用 RemotingConfiguration.Configure(String, Boolean)

System.Runtime.Remoting.RemotingServices

LogRemotingStage

建议不要使用该方法。 LogRemotingStage 仅供内部诊断使用。

System.IO.IsolatedStorage.IsolatedStorage

CurrentSize

CurrentSize 已弃用,因为它不符合 CLS。 若要获取当前大小,请使用 IsolatedStorage.UsedSize

System.IO.IsolatedStorage.IsolatedStorage

MaximumSize

MaximumSize 已弃用,因为它不符合 CLS。 若要获取最大大小,请使用 IsolatedStorage.Quota

System.IO.IsolatedStorage.IsolatedStorageFileStream

Handle

此属性已弃用。 请改用 IsolatedStorageFileStream.SafeFileHandle 属性。

System.IO.IsolatedStorage.IsolatedStorageFile

CurrentSize

CurrentSize 已弃用,因为它不符合 CLS。 若要获取当前大小,请使用 UsedSize

System.IO.IsolatedStorage.IsolatedStorageFile

MaximumSize

MaximumSize 已弃用,因为它不符合 CLS。 若要获取最大大小,请使用 IsolatedStorageFile.Quota

System.Reflection.Emit.ConstructorBuilder

ReturnType

此属性已弃用。

System.Reflection.Emit.FieldBuilder

SetMarshal

备用 API 可用:改为发出 System.Runtime.InteropServices.MarshalAsAttribute 自定义特性。

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.FlowControl

Phi

此 API 已弃用。

System.Reflection.Emit.ParameterBuilder

SetMarshal

备用 API 可用:改为发出 System.Runtime.InteropServices.MarshalAsAttribute 自定义特性。

System.Configuration.Assemblies.AssemblyHash

AssemblyHash(AssemblyHashAlgorithm, Byte[])

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

Algorithm

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

AssemblyHash(Byte[])

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

Empty

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

Clone

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

SetValue

System.Configuration.Assemblies.AssemblyHash 类已弃用。

System.Configuration.Assemblies.AssemblyHash

GetValue

System.Configuration.Assemblies.AssemblyHash 类已弃用。

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.Core.dll

类型

成员

消息

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

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

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

Zip

二元运算符的第二个数据源的类型必须为 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

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

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

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

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

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

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

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

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

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.Runtime.CompilerServices.CallSiteOps

GetMatch

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

GetCachedRules<T>(RuleCache<T>)

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

AddRule<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

ClearMatch

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

UpdateRules<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

Bind<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

CreateMatchmaker<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

SetNotMatched

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

GetRules<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

GetRuleCache<T>

请不要使用此方法。

System.Runtime.CompilerServices.CallSiteOps

MoveRule<T>(RuleCache<T>, T, Int32)

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

ExpandoTryGetValue

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

ExpandoCheckVersion

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

CreateRuntimeVariables(Object[], Int64[])

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

ExpandoPromoteClass

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

ExpandoTryDeleteValue

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

ExpandoTrySetValue

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

Quote

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

MergeRuntimeVariables

请不要使用此方法。

System.Runtime.CompilerServices.RuntimeOps

CreateRuntimeVariables()

请不要使用此方法。

System.Data.dll

类型

成员

消息

System.Data.DataSysDescriptionAttribute

DataSysDescriptionAttribute

DataSysDescriptionAttribute 已弃用。

System.Data.Odbc.OdbcParameterCollection

Add(String, Object)

Add(String, Object) 已弃用。 请使用 OdbcParameterCollection.AddWithValue(String, Object)

System.Data.Odbc.OdbcPermission

OdbcPermission()

OdbcPermission() 已弃用。 请使用 OdbcPermission(PermissionState.None) 构造函数。

System.Data.Odbc.OdbcPermission

OdbcPermission(PermissionState, Boolean)

OdbcPermission(PermissionState, Boolean) 已弃用。 请使用 OdbcPermission(PermissionState.None) 构造函数。

System.Data.OleDb.OleDbParameterCollection

Add(String, Object)

Add(String, Object) 已弃用。 请使用 OleDbParameterCollection.AddWithValue

System.Data.OleDb.OleDbPermission

OleDbPermission()

OleDbPermission() 已弃用。 请使用 OleDbPermission(PermissionState.None) 构造函数。

System.Data.OleDb.OleDbPermission

OleDbPermission(PermissionState, Boolean)

OleDbPermission(PermissionState, Boolean) 已弃用。 请使用 OleDbPermission(PermissionState.None) 构造函数。

System.Data.OleDb.OleDbPermission

Provider

Provider 属性已弃用。 请使用 Add 方法。

System.Data.OleDb.OleDbPermissionAttribute

Provider

Provider 属性已弃用。 请使用 Add 方法。

System.Data.SqlClient.SqlClientPermission

SqlClientPermission()

SqlClientPermission() 已弃用。 请使用 SqlClientPermission(PermissionState.None) 构造函数。

System.Data.SqlClient.SqlClientPermission

SqlClientPermission(PermissionState, Boolean)

SqlClientPermission(PermissionState, Boolean) 已弃用。 请使用 SqlClientPermission(PermissionState.None) 构造函数。

System.Data.SqlClient.SqlConnectionStringBuilder

ConnectionReset

ConnectionReset 已弃用。 System.Data.SqlClient.SqlConnection 将忽略“connection reset”关键字并总是重置连接。

System.Data.SqlClient.SqlParameterCollection

Add(String, Object)

Add(String, Object) 已弃用。 请使用 SqlParameterCollection.AddWithValue

System.Data.Entity.dll

类型

成员

消息

System.Data.Metadata.Edm.AssociationSetEnd

Role

此属性已过时,请改用 AssociationSetEnd.Name 属性。

System.Data.Objects.ObjectContext

ApplyPropertyChanges

请改用 ObjectContext.ApplyCurrentValues<TEntity>

System.Data.Objects.ObjectContext

SaveChanges(Boolean)

请改用 SaveChanges(SaveOptions)

System.Data.OracleClient.dll

类型

成员

消息

System.Data.OracleClient.OracleParameter

Scale

Scale 已弃用。 使用 System.Math 类显式设置小数的位数。

System.Data.OracleClient.OracleParameter

Precision

Precision 已弃用。 使用 System.Math 类显式设置小数的精度。

System.Data.OracleClient.OracleParameterCollection

Add(String, Object)

Add(String, Object) 已弃用。 请使用 OracleParameterCollection.AddWithValue

System.Design.dll

类型

成员

消息

System.ComponentModel.Design.ComponentDesigner

OnSetComponentDefaults

此方法已弃用。 请改用 ComponentDesigner.InitializeNewComponent

System.ComponentModel.Design.ComponentDesigner

InitializeNonDefault

此方法已弃用。 请改用 ComponentDesigner.InitializeExistingComponent

System.Windows.Forms.Design.ControlDesigner

OnSetComponentDefaults

此方法已弃用。 请改用 ControlDesigner.InitializeNewComponent

System.Web.UI.Design.HtmlControlDesigner

ShouldCodeSerialize

建议不要使用此属性,因为不支持代码序列化。

System.Web.UI.Design.HtmlControlDesigner

Behavior

建议的替代项为 ControlDesigner.Tag

System.Web.UI.Design.ControlDesigner

ReadOnly

建议使用的替代方法是改为从 System.Web.UI.Design.ContainerControlDesigner 继承并使用 System.Web.UI.Design.EditableDesignerRegion。 利用区域,可在设计器中更好地控制内容。

System.Web.UI.Design.ControlDesigner

IsPropertyBound

建议的替代项为 System.Web.UI.Design.ControlDesigner.DataBindings.Contains。 利用 System.Web.UI.DataBindingCollection 类,可以更好地控制与控件关联的数据绑定。

System.Web.UI.Design.ControlDesigner

DesignTimeHtmlRequiresLoadComplete

建议的替代项为 ControlDesigner.SetViewFlags

System.Web.UI.Design.ControlDesigner

IsDirty

建议使用的替代方法是使用 System.Web.UI.Design.ControlDesigner.Tag.SetDirty 和 System.Web.UI.Design.ControlDesigner.Tag.IsDirty。

System.Web.UI.Design.ControlDesigner

RaiseResizeEvent

建议不要使用此方法,因为调整大小是由 ControlDesigner.OnComponentChanged 方法来处理的。

System.Web.UI.Design.ControlDesigner

GetPersistInnerHtml

建议的替代项为 ControlDesigner.GetPersistenceContent

System.Web.UI.Design.TemplatedControlDesigner

GetTemplateContainerDataSource

建议不要使用此方法,因为模板编辑是在 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

GetTemplateEditingVerbs

建议不要使用此方法,因为模板编辑是在 System.Web.UI.Design.ControlDesigner 中处理的。 若要支持模板编辑,请在 ControlDesigner.TemplateGroups 属性中公开模板数据,并调用 ControlDesigner.SetViewFlags(ViewFlags.TemplateEditing, true)。

System.Web.UI.Design.TemplatedControlDesigner

ActiveTemplateEditingFrame

建议不要使用此属性,因为模板编辑是在 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

GetTemplateContainerDataItemProperty

建议不要使用此方法,因为模板编辑是在 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

SetTemplateContent

建议不要使用此方法,因为模板编辑是在 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.WebControls.BaseDataListDesigner

GetTemplateContainerDataSource

建议不要使用此方法,因为模板编辑是在 System.Web.UI.Design.ControlDesigner 中处理的。 若要支持模板编辑,请在 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

SetTemplateContent

建议不要使用此方法,因为模板编辑是在 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

GetTemplateContent

建议不要使用此方法,因为模板编辑是在 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

GetTemplateContainerDataItemProperty

建议不要使用此方法,因为模板编辑是在 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.dll

类型

成员

消息

System.ComponentModel.TypeDescriptor

ComNativeDescriptorHandler

此属性已弃用。 改用类型说明提供程序为 COM 类型提供类型信息。

System.ComponentModel.Design.DesignerTransactionCloseEventArgs

DesignerTransactionCloseEventArgs(Boolean)

此构造函数已过时。 请改用 DesignerTransactionCloseEventArgs(Boolean, Boolean)。

System.ComponentModel.Design.SelectionTypes

MouseDown

此值已弃用。 它不再受支持。

System.ComponentModel.Design.SelectionTypes

Normal

此值已弃用。 请改用 SelectionTypes.Auto

System.ComponentModel.Design.SelectionTypes

Valid

此值已弃用。 使用 System.Enum 类方法确定有效值,或使用类型转换器。

System.ComponentModel.Design.SelectionTypes

MouseUp

此值已弃用。 它不再受支持。

System.ComponentModel.Design.SelectionTypes

Click

此值已弃用。 请改用 SelectionTypes.Primary

System.ComponentModel.Design.ViewTechnology

WindowsForms

此值已弃用。 请改用 ViewTechnology.Default

System.ComponentModel.Design.ViewTechnology

Passthrough

此值已弃用。 请改用 ViewTechnology.Default

System.CodeDom.Compiler.CodeDomProvider

CreateGenerator()

调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而是应改为直接对 System.CodeDom.Compiler.CodeDomProvider 类使用方法。 继承自 CodeDomProvider 的那些项仍然必须实现此接口,并且应排除此警告或者也废弃此方法。

System.CodeDom.Compiler.CodeDomProvider

CreateCompiler

调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应改为直接对 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 的未来版本中移除。 有关更多信息,请参见 Security Changes in the .NET Framework 4(.NET Framework 4 中的安全性更改)。

System.CodeDom.Compiler.CompilerResults

Evidence

CAS 策略已过时,并将从 .NET Framework 的未来版本中移除。 有关更多信息,请参见 Security Changes in the .NET Framework 4(.NET Framework 4 中的安全性更改)。

System.Collections.Specialized.NameValueCollection

NameValueCollection(IHashCodeProvider, IComparer)

请改用 NameValueCollection(IEqualityComparer)。

System.Collections.Specialized.NameValueCollection

NameValueCollection(Int32, IHashCodeProvider, IComparer)

请改用 NameValueCollection(Int32, IEqualityComparer)。

Microsoft.Win32.SystemEvents

LowMemory

此事件已弃用。

Microsoft.CSharp.CSharpCodeProvider

CreateGenerator

调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而实应改为直接对 System.CodeDom.Compiler.CodeDomProvider 类使用方法。

Microsoft.CSharp.CSharpCodeProvider

CreateCompiler

调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应改为直接对 System.CodeDom.Compiler.CodeDomProvider 类使用方法。

Microsoft.VisualBasic.VBCodeProvider

CreateGenerator

调用方不应使用 System.CodeDom.Compiler.ICodeGenerator 接口,而是应改为直接对 System.CodeDom.Compiler.CodeDomProvider 类使用方法。

Microsoft.VisualBasic.VBCodeProvider

CreateCompiler

调用方不应使用 System.CodeDom.Compiler.ICodeCompiler 接口,而是应改为直接对 System.CodeDom.Compiler.CodeDomProvider 类使用方法。

System.Uri

MakeRelative

此方法已弃用。 请使用 Uri.MakeRelativeUri

System.Uri

Uri(String, Boolean)

此构造函数已弃用。 请使用 Uri(String)。 dontEscape 参数已弃用,并始终为 false。

System.Uri

Uri(Uri, String, Boolean)

此构造函数已弃用。 请使用 Uri(Uri, String)。 dontEscape 参数已弃用,并始终为 false。

System.Net.Dns

GetHostByAddress(String)

GetHostByAddress(String) 对于此类型已过时,请改用 Dns.GetHostEntry(String)

System.Net.Dns

GetHostByAddress(IPAddress)

GetHostByAddress(IPAddress) 对于此类型已过时,请改用 Dns.GetHostEntry(IPAddress)

System.Net.Dns

GetHostByName

GetHostByName 对于此类型已过时,请改用 Dns.GetHostEntry(String)

System.Net.Dns

BeginResolve(String, AsyncCallback, Object)

BeginResolve(String, AsyncCallback, Object) 对于此类型已过时,请改用 Dns.BeginGetHostEntry(String, AsyncCallback, Object)

System.Net.Dns

EndResolve

EndResolve 对于此类型已过时,请改用 Dns.EndGetHostEntry

System.Net.Dns

Resolve

Resolve 对于此类型已过时,请改用 Dns.GetHostEntry(String)

System.Net.Dns

BeginGetHostByName

BeginGetHostByName 对于此类型已过时,请改用 Dns.BeginGetHostEntry(String, AsyncCallback, Object)

System.Net.Dns

EndGetHostByName

EndGetHostByName 对于此类型已过时,请改用 Dns.EndGetHostEntry

System.Net.IPAddress

Address

此属性已弃用。 它依赖于地址族。 请使用 IPAddress.Equals 方法执行比较。

System.Net.ServicePointManager

CertificatePolicy

CertificatePolicy 对于此类型已过时,请改用 ServicePointManager.ServerCertificateValidationCallback

System.Net.WebProxy

GetDefaultProxy

此方法已弃用。 请使用为您默认选择的代理。

System.Net.Sockets.Socket

SupportsIPv6

SupportsIPv6 对于此类型已过时,请改用 Socket.OSSupportsIPv6

System.Net.Sockets.Socket

SupportsIPv4

SupportsIPv4 对于此类型已过时,请改用 Socket.OSSupportsIPv4

System.Net.Sockets.TcpListener

TcpListener(Int32)

此方法已弃用。 请改用 TcpListener(IPAddress, Int32)。

System.Net.Mail.MailMessage

ReplyTo

ReplyTo 对于此类型已过时。 请改用可接受多个地址的 MailMessage.ReplyToList

System.Configuration.ConfigurationException

ConfigurationException(String, Exception)

此类已过时。 若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

ConfigurationException()

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

GetXmlNodeLineNumber

此类已过时,请改用 GetLineNumber(XmlNode)

System.Configuration.ConfigurationException

ConfigurationException(String, String, Int32)

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

ConfigurationException(String)

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

ConfigurationException(String, Exception, String, Int32)

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

ConfigurationException(String, XmlNode)

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

ConfigurationException(String, Exception, XmlNode)

此类已过时,若要创建新异常,请创建 System.Configuration.ConfigurationErrorsException

System.Configuration.ConfigurationException

GetXmlNodeFilename

此类已过时,请改用 ConfigurationErrorsException.GetFilename

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, String, String)

此方法已弃用。 请改用 Create(String, String, PerformanceCounterCategoryType, String, String)

System.Diagnostics.PerformanceCounterCategory

Create(String, String, CounterCreationDataCollection)

此方法已弃用。 请改用 Create(String, String, PerformanceCounterCategoryType, CounterCreationDataCollection)

System.Diagnostics.PerformanceCounterManager

PerformanceCounterManager

此类已弃用。 改为通过 System.Diagnostics.PerformanceCounter 类使用性能计数器。

System.Diagnostics.PerformanceCounterPermissionAccess

Instrument

此成员已弃用。 请改用 PerformanceCounterPermissionAccess.Write

System.Diagnostics.PerformanceCounterPermissionAccess

Browse

此成员已弃用。 请改用 PerformanceCounterPermissionAccess.Read

System.Diagnostics.Process

WorkingSet

此属性已弃用。 请改用 Process.WorkingSet64

System.Diagnostics.Process

VirtualMemorySize

此属性已弃用。 请改用 Process.VirtualMemorySize64

System.Diagnostics.Process

PeakPagedMemorySize

此属性已弃用。 请改用 Process.PeakPagedMemorySize64

System.Diagnostics.Process

PrivateMemorySize

此属性已弃用。 请改用 Process.PrivateMemorySize64

System.Diagnostics.Process

PagedSystemMemorySize

此属性已弃用。 请改用 Process.PagedSystemMemorySize64

System.Diagnostics.Process

NonpagedSystemMemorySize

此属性已弃用。 请改用 Process.NonpagedSystemMemorySize64

System.Diagnostics.Process

PeakVirtualMemorySize

此属性已弃用。 请改用 Process.PeakVirtualMemorySize64

System.Diagnostics.Process

PeakWorkingSet

此属性已弃用。 请改用 Process.PeakWorkingSet64

System.Diagnostics.Process

PagedMemorySize

此属性已弃用。 请改用 PagedMemorySize64

System.Drawing.dll

类型

成员

消息

System.Drawing.FontFamily

GetFamilies

不要使用 GetFamilies 方法;请改用 FontFamily.Families 属性。

System.Messaging.dll

类型

成员

消息

System.Messaging.MessageQueue

GetEnumerator

此方法返回一个 System.Messaging.MessageEnumerator,它未正确实现方法的 MessageEnumerator.RemoveCurrent 族。 请改用 MessageQueue.GetMessageEnumerator2

System.Messaging.MessageQueue

GetMessageEnumerator

此方法返回一个 System.Messaging.MessageEnumerator,它未正确实现方法的 MessageEnumerator.RemoveCurrent 族。 请改用 MessageQueue.GetMessageEnumerator2

System.ServiceModel.dll

类型

成员

消息

System.ServiceModel.Security.WindowsClientCredential

AllowNtlm

此属性已弃用,保留它只是为了向后兼容。 将使用本地计算机策略来确定是否应使用 NTLM。

System.Web.DataVisualization.dll

类型

成员

消息

System.Web.UI.DataVisualization.Charting.Chart

ViewStateData

ViewStateData 已弃用。 请改为研究使用 Control.ViewState

System.Web.dll

类型

成员

消息

System.Web.Configuration.AuthenticationMode

Passport

此字段已过时。 Passport 身份验证产品不再受支持,并且已由 Live ID 取代。

System.Web.Configuration.AuthenticationSection

Passport

此属性已过时。 Passport 身份验证产品不再受支持,并且已由 Live ID 取代。

System.Web.Configuration.HttpCapabilitiesBase

JavaScript

建议的替代项为 HttpCapabilitiesBase.EcmaScriptVersion 属性。 大于或等于 1 的 Version.Major 版本值暗含 JavaScript 支持。

System.Web.Configuration.SystemWebSectionGroup

MobileControls

System.Web.Mobile.dll 已过时。

System.Web.HttpContext

GetAppConfig

建议的替代项为 System.Web.dll 中的 WebConfigurationManager.GetWebApplicationSection

System.Web.HttpContext

GetConfig

建议的替代项为 System.Web.dll 中的 HttpContext.GetSection

System.Web.UI.Page

RegisterOnSubmitStatement

建议的替代项为 Page.ClientScript.RegisterOnSubmitStatement(Type type, String key, String script)。

System.Web.UI.Page

RegisterArrayDeclaration

建议的替代项为 Page.ClientScript.RegisterArrayDeclaration(String arrayName, String arrayValue)。

System.Web.UI.Page

GetPostBackClientEvent

建议的替代项为 Page.ClientScript.GetPostBackEventReference。

System.Web.UI.Page

GetPostBackClientHyperlink

建议的替代项为 Page.ClientScript.GetPostBackClientHyperlink。

System.Web.UI.Page

IsStartupScriptRegistered

建议的替代项为 Page.ClientScript.IsStartupScriptRegistered(String key)。

System.Web.UI.Page

RegisterHiddenField

建议的替代项为 Page.ClientScript.RegisterHiddenField(String hiddenFieldName, String hiddenFieldInitialValue)。

System.Web.UI.Page

RegisterClientScriptBlock

建议的替代项为 PageClientScript.RegisterClientScriptBlock(Type type, String key, String script)。

System.Web.UI.Page

SmartNavigation

建议的替代项为 Page.SetFocus 和 PageMaintainScrollPositionOnPostback()。

System.Web.UI.Page

GetPostBackEventReference(Control)

建议的替代项为 Page.ClientScript.GetPostBackEventReference。

System.Web.UI.Page

RegisterStartupScript

建议的替代项为 Page.ClientScript.RegisterStartupScript(Type type, String key, String script)。

System.Web.UI.Page

IsClientScriptBlockRegistered

建议的替代项为 Page.ClientScript.IsClientScriptBlockRegistered(String key)。

System.Web.UI.Page

GetPostBackEventReference(Control, String)

建议的替代项为 Page.ClientScript.GetPostBackEventReference。

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

对数据绑定控件(如 System.Web.UI.WebControls.GridViewSystem.Web.UI.WebControls.ListView)使用 EnablePersistedSelection 属性。

System.Web.Extensions.dll

类型

成员

消息

System.Web.UI.ScriptReferenceBase

NotifyScriptLoaded

脚本引用中不再需要 NotifyScriptLoaded

System.Web.UI.ScriptManager

ScriptPath

此属性已过时。 改为设置每个 System.Web.UI.ScriptReferencePath 属性。

System.Web.UI.ScriptReference

IgnoreScriptPath

此属性已过时。 设置每个 System.Web.UI.ScriptReferencePath 属性,而不是使用 ScriptManager.ScriptPath

System.Web.UI.ScriptResourceAttribute

TypeName

此属性已过时。 请改用 ScriptResourceAttribute.StringResourceClientTypeName

System.Web.UI.ScriptResourceAttribute

ScriptResourceName

此属性已过时。 请改用 ScriptResourceAttribute.StringResourceName

System.Web.Services.dll

类型

成员

消息

System.Web.Services.Protocols.SoapHeaderAttribute

Required

此属性将从未来版本中移除。 不再强制要求 SOAP 消息中有特定标头。

System.Web.Services.Discovery.DiscoveryClientProtocol

LoadExternals

此方法将从未来版本中移除。 资源发现不再需要方法调用。

System.Windows.Forms.dll

类型

成员

消息

System.Windows.Forms.AccessibleStates

Valid

此枚举值已弃用。 不提供替代项。

System.Windows.Forms.Control

Scale(Single)

此方法已弃用。 请改用 Control.Scale(SizeF) 方法。

System.Windows.Forms.Control

Scale(Single, Single)

此方法已弃用。 请改用 Control.Scale(SizeF) 方法。

System.Windows.Forms.Form

GetAutoScaleSize

此方法已弃用。 请改用 ContainerControl.AutoScaleDimensions 属性。

System.Windows.Forms.Form

AutoScale

此属性已弃用。 请改用 ContainerControl.AutoScaleMode 属性。

System.Windows.Forms.PrintPreviewDialog

AutoScaleBaseSize

此属性已弃用。 请改用 ContainerControl.AutoScaleDimensions 属性。

System.Xaml.dll

类型

成员

消息

System.Windows.Markup.MarkupExtensionReturnTypeAttribute

MarkupExtensionReturnTypeAttribute(Type, Type)

XAML 分析器不使用 expressionType 参数。 若要指定预期返回类型,请使用 MarkupExtensionReturnTypeAttribute.MarkupExtensionReturnTypeAttribute(Type)。 若要为表达式类型指定自定义处理,请使用 System.Windows.Markup.XamlSetMarkupExtensionAttribute

System.Windows.Markup.MarkupExtensionReturnTypeAttribute

ExpressionType

XAML 分析器不使用此类型。 请查看 System.Windows.Markup.XamlSetMarkupExtensionAttribute

System.Xml.dll

类型

成员

消息

System.Xml.XmlConvert

ToDateTime(String)

请使用 XmlConvert.ToDateTime(String, XmlDateTimeSerializationMode)

System.Xml.XmlConvert

ToString(DateTime)

请使用 XmlConvert.ToString(DateTime, XmlDateTimeSerializationMode)

System.Xml.ValidationType

Auto

应将验证类型指定为 ValidationType.DTDValidationType.Schema

System.Xml.ValidationType

ValidationType.XDR

通过 System.Xml.XmlValidatingReader 进行的 XDR 验证已过时。

System.Xml.XmlReaderSettings

ProhibitDtd

请改用 XmlReaderSettings.DtdProcessing 属性。

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.XmlSchemaType

BaseSchemaType

此属性已弃用。 请使用 XmlSchemaType.BaseXmlSchemaType 属性,该属性返回强类型的基架构类型。

System.Xml.Schema.XmlSchemaElement

ElementType

此属性已弃用。 请使用 XmlSchemaElement.ElementSchemaType 属性,该属性返回强类型的元素类型。

System.Xml.Serialization.CodeIdentifier

CodeIdentifier

由于此类仅包含静态方法,因此绝不应构造此类。

System.Xml.Serialization.XmlSerializer

FromMappings(XmlMapping[], Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 XmlSerializer.FromMappings 的重载。

System.Xml.Serialization.XmlSerializer

XmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 XmlSerializer.XmlSerializer 构造函数重载。

System.Xml.Serialization.XmlSerializerFactory

CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence)

此方法已过时,并将从 .NET Framework 的未来版本中移除。 请使用不采用 System.Security.Policy.Evidence 参数的 XmlSerializerFactory.CreateSerializer 的重载。

Microsoft 程序集中的过时成员

以下各表列出了 Microsoft 程序集中的过时成员。 这些程序集是具有特殊用途的程序集,如面向单一语言的程序集(如 Microsoft.VisualBasic.dll)或面向某个生成系统的程序集(如 Microsoft.Build.Engine.dll)。

IEHost.dll 和 IEExec.exe

IEHost.dll 和 IEExec.exe 程序集已从 .NET Framework 中删除。 所有其类型和成员都已过时,它们从 .NET Framework 4 起不受支持。 这些程序集过去用于承载 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.Conversion.ProjectFileConverter

ConvertInMemory(Engine, ProjectLoadSettings)

请改用无参数的 ProjectFileConverter.ConvertInMemory() 方法。

Microsoft.Build.Conversion.ProjectFileConverter

ConvertInMemory(Engine)

请改用无参数的 ProjectFileConverter.ConvertInMemory() 方法。

Microsoft.Build.Conversion.ProjectFileConverter

Convert(String)

请改用无参数的 Convert() 重载。

Microsoft.Build.Conversion.ProjectFileConverter

Convert(ProjectLoadSettings)

请改用无参数的 Convert() 重载。

Microsoft.Build.Engine.dll

类型

成员

消息

Microsoft.Build.BuildEngine.Engine

Engine(String)

如果只是将 .NET Framework 位置作为 BinPath 传入,则只需对无参数的 Engine() 构造函数进行更改。 否则,可以在注册表或 config 文件中定义自定义工具集,或者通过向引擎的 Microsoft.Build.BuildEngine.ToolsetCollection 中添加元素来定义自定义工具集。 然后,请改用 Engine() 或 Engine(ToolsetLocations) 构造函数。

Microsoft.Build.BuildEngine.Engine

BinPath

避免设置 BinPath。 如果只是将 .NET Framework 位置作为 BinPath 传入,则无需其他操作。 否则,请改为在注册表或 config 文件中定义工具集,或者通过向引擎的 Microsoft.Build.BuildEngine.ToolsetCollection 中添加元素来定义工具集,以便使用自定义 BinPath

Microsoft.VisualBasic.dll

类型

成员

消息

Microsoft.VisualBasic.FileSystem

FilePut(Object, Object, Object)

此成员已弃用。 请使用 FileSystem.FilePutObject 写入 Object 类型,或将 FileNumber 和 RecordNumber 强制转换为 Int32 以便写入非对象类型。

Microsoft.VisualBasic.CompilerServices.Conversions

FallbackUserDefinedConversion

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackSetComplex

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackInvokeDefault1

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackGet

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackInvokeDefault2

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackIndexSet

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackSet

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackIndexSetComplex

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.NewLateBinding

FallbackCall

请不要使用此方法。

Microsoft.VisualBasic.CompilerServices.Operators

FallbackInvokeUserDefinedOperator

请不要使用此方法。

Microsoft.VisualBasic.MyServices.RegistryProxy

DynData

DynData 注册表项仅适用于 Win9x,现已不再受此版本的 .NET Framework 支持。 请改用 PerformanceData 注册表项。 此属性将从 Framework 的未来版本中移除。

请参见

其他资源

.NET Framework 中的过时功能

.NET Framework 4 中的过时类型

修订记录

日期

修订记录

原因

2010 年 8 月

向已过时程序集的列表中添加了 IEHost.dll 和 IEExec.exe。

内容 Bug 修复