Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Disallowed Types and Members in System.Data.dll

SQL Server 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 System.Data.dll assembly whose Host Protection Attribute (HPA) values are disallowed.

Note Note

This list was generated from the supported assemblies. 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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.