Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 2.59 KB

disallowed-types-and-members-in-system-data-dll.md

File metadata and controls

40 lines (34 loc) · 2.59 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Disallowed Types and Members in System.Data.dll
SQL Server CLR programming disallows a type or member with certain values for the HostProtectionResource enum. This article lists System.Data.dll disallowed values.
rwestMSFT
randolphwest
12/27/2024
sql
clr
reference
host protection attributes [CLR integration]
common language runtime [SQL Server], host protection attributes

Disallowed types and members in System.Data.dll

[!INCLUDE SQL Server]

[!INCLUDE ssNoVersion] 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, SelfAffectingProcessMgmt, 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

This list was generated from the supported assemblies. For more information, see Supported .NET Framework libraries.

Type or member HPA values
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

Related content