共用方式為


Disallowed Types and Members In System.Data.dll

新增: 2006 年 4 月 14 日

SQL Server 2005 common language integration (CLR) programming disallows the use of a type or member that has a HostProtectionAttribute that specifies a System.Security.Permissions.HostProtectionResource enumeration with a value of ExternalProcessMgmt, ExternalThreading, MayLeakOnAbort, SecurityInfrastructure, SelfAffectingProcessMgmnt, SelfAffectingThreading, SharedState, Synchronization, or UI. The following table lists the members and types of the Microsoft.VisualBasic.dll assembly whose Host Protection Attribute (HPA) values are disallowed.

ms403287.note(zh-tw,SQL.90).gif附註:
This list was generated from the supported assemblies of version 2.0.50727 of the .NET Framework. For more information, see Supported .NET Framework Libraries.
Type or Member HPA Value(s)

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

請參閱

概念

Host Protection Attributes and CLR Integration Programming
Disallowed Types and Members In Microsoft.VisualBasic.dll
Disallowed Types and Members In mscorlib.dll
Disallowed Types and Members In System.dll

說明及資訊

取得 SQL Server 2005 協助