System.Data.dll 中禁用的类型和成员
适用于:SQL Server
SQL Server 公共语言集成 (CLR) 编程禁止使用具有 HostProtectionAttribute 的类型或成员,该类型或成员指定了具有 ExternalProcessMgmt、ExternalThreading、MayLeakOnAbort、SecurityInfrastructure、SelfAffectingProcessMgmnt、SelfAffectingThreading、SharedState 的值的 System.Security.Permissions.HostProtectionResource 枚举, 同步或 UI。 下表列出了宿主保护属性 (HPA) 值被禁用的 System.Data.dll 程序集的成员和类型。
注意
此列表是通过支持的程序集生成的。 有关详细信息,请参阅 支持的 .NET Framework 库。
类型或成员 | HPA 值 |
---|---|
System.Data.SqlClient.SqlCommand.BeginExecuteNonQuery() | ExternalThreading |
System.Data.SqlClient.SqlCommand.BeginExecuteReader() | ExternalThreading |
System.Data.SqlClient.SqlCommand.BeginExecuteXmlReader() | ExternalThreading |
System.Data.SqlClient.SqlDependency..ctor() | ExternalThreading |
System.Data.SqlClient.SqlDependency.Start() | ExternalThreading |
System.Data.SqlClient.SqlDependency.Stop() | ExternalThreading |
System.Data.TypedDataSetGenerator | SharedState, Synchronization |
System.Xml.XmlDataDocument | 同步 |
另请参阅
宿主保护属性和 CLR 集成编程
Microsoft.VisualBasic.dll 中禁用的类型和成员
mscorlib.dll 中禁用的类型和成员
System.dll 中禁用的类型和成员
System.Core.dll 中禁用的类型和成员
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈