共用方式為


在 System.Data.dll 中不允許的類型和成員

SQL Server Common Language Integration (CLR) 程式設計不允許使用具有 HostProtectionAttribute (會指定含有 ExternalProcessMgmt、ExternalThreading、MayLeakOnAbort、SecurityInfrastructure、SelfAffectingProcessMgmnt、SelfAffectingThreading、 SharedState、Synchronization 或 UI 值的 System.Security.Permissions.HostProtectionResource 列舉) 的類型或成員。 下表列出 System.Data.dll 組件的成員和類型,這些成員和類型的主機保護屬性 (HPA) 值不被允許。

[!附註]

此清單是根據支援的組件產生的。 如需詳細資訊,請參閱<支援的 .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

Synchronization

請參閱

概念

主機保護屬性和 CLR 整合程式設計

Microsoft.VisualBasic.dll 中不允許的型別和成員

在 mscorlib.dll 中不允許的類型和成員

在 System.dll 中不允許的類型和成員

System.Core.dll 中不允許的類型和成員