Disallowed Types and Members in System.dll

Disallowed Types and Members in System.dll

 

Applies To: SQL Server 2016 Preview

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

System_CAPS_ICON_note.jpg Note


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

Type or MemberHPA Value(s)
Microsoft.Win32.NativeMethodsMayLeakOnAbort
Microsoft.Win32.PowerModeChangedEventArgsMayLeakOnAbort
Microsoft.Win32.PowerModeChangedEventHandlerMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeEventHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeEventLogReadHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeEventLogWriteHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeFileMappingHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeFileMapViewHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeLibraryHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeLocalMemHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeProcessHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeTimerHandleMayLeakOnAbort
Microsoft.Win32.SafeHandles.SafeUserTokenHandleMayLeakOnAbort
Microsoft.Win32.SafeNativeMethodsMayLeakOnAbort
Microsoft.Win32.SessionEndedEventArgsMayLeakOnAbort
Microsoft.Win32.SessionEndedEventHandlerMayLeakOnAbort
Microsoft.Win32.SessionEndingEventArgsMayLeakOnAbort
Microsoft.Win32.SessionEndingEventHandlerMayLeakOnAbort
Microsoft.Win32.SessionSwitchEventArgsMayLeakOnAbort
Microsoft.Win32.SessionSwitchEventHandlerMayLeakOnAbort
Microsoft.Win32.SystemEventsMayLeakOnAbort
Microsoft.Win32.TimerElapsedEventArgsMayLeakOnAbort
Microsoft.Win32.TimerElapsedEventHandlerMayLeakOnAbort
Microsoft.Win32.UnsafeNativeMethodsMayLeakOnAbort
Microsoft.Win32.UserPreferenceChangedEventArgsMayLeakOnAbort
Microsoft.Win32.UserPreferenceChangedEventHandlerMayLeakOnAbort
Microsoft.Win32.UserPreferenceChangingEventArgsMayLeakOnAbort
Microsoft.Win32.UserPreferenceChangingEventHandlerMayLeakOnAbort
System.ComponentModel.AddingNewEventArgsSharedState
System.ComponentModel.AddingNewEventHandlerSharedState
System.ComponentModel.ArrayConverterSharedState
System.ComponentModel.ArraySubsetEnumeratorSharedState
System.ComponentModel.AsyncCompletedEventArgsSharedState
System.ComponentModel.AsyncCompletedEventHandlerSharedState
System.ComponentModel.AsyncOperationSharedState
System.ComponentModel.AsyncOperationManagerSharedState
System.ComponentModel.AttributeCollectionSynchronization
System.ComponentModel.BackgroundWorkerSharedState
System.ComponentModel.BaseNumberConverterSharedState
System.ComponentModel.BindingListSharedState
System.ComponentModel.BooleanConverterSharedState
System.ComponentModel.ByteConverterSharedState
System.ComponentModel.CancelEventArgsSharedState
System.ComponentModel.CancelEventHandlerSharedState
System.ComponentModel.CharConverterSharedState
System.ComponentModel.CollectionChangeEventArgsSharedState
System.ComponentModel.CollectionChangeEventHandlerSharedState
System.ComponentModel.CollectionConverterSharedState
System.ComponentModel.CompModSwitchesSharedState
System.ComponentModel.ComponentCollectionSynchronization
System.ComponentModel.ComponentConverterSharedState
System.ComponentModel.ComponentEditorSharedState
System.ComponentModel.ComponentResourceManagerSharedState
System.ComponentModel.ContainerSharedState
System.ComponentModel.ContainerFilterServiceSharedState
System.ComponentModel.CultureInfoConverterSharedState
System.ComponentModel.CustomTypeDescriptorSharedState
System.ComponentModel.DateTimeConverterSharedState
System.ComponentModel.DecimalConverterSharedState
System.ComponentModel.DelegatingTypeDescriptionProviderSharedState
System.ComponentModel.Design.ActiveDesignerEventArgsSharedState
System.ComponentModel.Design.ActiveDesignerEventHandlerSharedState
System.ComponentModel.Design.CheckoutExceptionSharedState
System.ComponentModel.Design.CommandIDSharedState
System.ComponentModel.Design.ComponentChangedEventArgsSharedState
System.ComponentModel.Design.ComponentChangedEventHandlerSharedState
System.ComponentModel.Design.ComponentChangingEventArgsSharedState
System.ComponentModel.Design.ComponentChangingEventHandlerSharedState
System.ComponentModel.Design.ComponentEventArgsSharedState
System.ComponentModel.Design.ComponentEventHandlerSharedState
System.ComponentModel.Design.ComponentRenameEventArgsSharedState
System.ComponentModel.Design.ComponentRenameEventHandlerSharedState
System.ComponentModel.Design.DesignerCollectionSharedState
System.ComponentModel.Design.DesignerEventArgsSharedState
System.ComponentModel.Design.DesignerEventHandlerSharedState
System.ComponentModel.Design.DesignerOptionServiceSharedState
System.ComponentModel.Design.DesignerTransactionSharedState
System.ComponentModel.Design.DesignerTransactionCloseEventArgsSharedState
System.ComponentModel.Design.DesignerTransactionCloseEventHandlerSharedState
System.ComponentModel.Design.DesignerVerbSharedState
System.ComponentModel.Design.DesignerVerbCollectionSharedState
System.ComponentModel.Design.DesigntimeLicenseContextSharedState
System.ComponentModel.Design.DesigntimeLicenseContextSerializerSharedState
System.ComponentModel.Design.MenuCommandSharedState
System.ComponentModel.Design.RuntimeLicenseContextSharedState
System.ComponentModel.Design.Serialization.ComponentSerializationServiceSharedState
System.ComponentModel.Design.Serialization.ContextStackSharedState
System.ComponentModel.Design.Serialization.DesignerLoaderSharedState
System.ComponentModel.Design.Serialization.InstanceDescriptorSharedState
System.ComponentModel.Design.Serialization.MemberRelationshipServiceSharedState
System.ComponentModel.Design.Serialization.ResolveNameEventArgsSharedState
System.ComponentModel.Design.Serialization.ResolveNameEventHandlerSharedState
System.ComponentModel.Design.Serialization.SerializationStoreSharedState
System.ComponentModel.Design.ServiceContainerSharedState
System.ComponentModel.Design.ServiceCreatorCallbackSharedState
System.ComponentModel.Design.StandardCommandsSharedState
System.ComponentModel.Design.StandardToolWindowsSharedState
System.ComponentModel.DoubleConverterSharedState
System.ComponentModel.DoWorkEventArgsSharedState
System.ComponentModel.DoWorkEventHandlerSharedState
System.ComponentModel.EnumConverterSharedState
System.ComponentModel.EventDescriptorSharedState
System.ComponentModel.EventDescriptorCollectionSynchronization
System.ComponentModel.EventHandlerListSharedState
System.ComponentModel.ExpandableObjectConverterSharedState
System.ComponentModel.ExtendedPropertyDescriptorSharedState
System.ComponentModel.GuidConverterSharedState
System.ComponentModel.HandledEventArgsSharedState
System.ComponentModel.HandledEventHandlerSharedState
System.ComponentModel.InstanceCreationEditorSharedState
System.ComponentModel.Int16ConverterSharedState
System.ComponentModel.Int32ConverterSharedState
System.ComponentModel.Int64ConverterSharedState
System.ComponentModel.IntSecuritySharedState
System.ComponentModel.InvalidAsynchronousStateExceptionSharedState
System.ComponentModel.InvalidEnumArgumentExceptionSharedState
System.ComponentModel.ISynchronizeInvoke.BeginInvoke()ExternalThreading, Synchronization
System.ComponentModel.LicenseSharedState
System.ComponentModel.LicenseContextSharedState
System.ComponentModel.LicenseExceptionSharedState
System.ComponentModel.LicenseManagerExternalProcessMgmt
System.ComponentModel.LicenseProviderSharedState
System.ComponentModel.LicFileLicenseProviderSharedState
System.ComponentModel.ListChangedEventArgsSharedState
System.ComponentModel.ListChangedEventHandlerSharedState
System.ComponentModel.ListSortDescriptionSharedState
System.ComponentModel.ListSortDescriptionCollectionSharedState
System.ComponentModel.MaskedTextProviderSharedState
System.ComponentModel.MemberDescriptorSharedState
System.ComponentModel.MultilineStringConverterSharedState
System.ComponentModel.NestedContainerSharedState
System.ComponentModel.NullableConverterSharedState
System.ComponentModel.ProgressChangedEventArgsSharedState
System.ComponentModel.ProgressChangedEventHandlerSharedState
System.ComponentModel.PropertyChangedEventArgsSharedState
System.ComponentModel.PropertyChangedEventHandlerSharedState
System.ComponentModel.PropertyDescriptorSharedState
System.ComponentModel.PropertyDescriptorCollectionSynchronization
System.ComponentModel.ReferenceConverterSharedState
System.ComponentModel.ReflectEventDescriptorSharedState
System.ComponentModel.ReflectPropertyDescriptorSharedState
System.ComponentModel.ReflectTypeDescriptionProviderSharedState
System.ComponentModel.RefreshEventArgsSharedState
System.ComponentModel.RefreshEventHandlerSharedState
System.ComponentModel.RunWorkerCompletedEventArgsSharedState
System.ComponentModel.RunWorkerCompletedEventHandlerSharedState
System.ComponentModel.SByteConverterSharedState
System.ComponentModel.SingleConverterSharedState
System.ComponentModel.StringConverterSharedState
System.ComponentModel.SyntaxCheckSharedState
System.ComponentModel.TimeSpanConverterSharedState
System.ComponentModel.TypeConverterSharedState
System.ComponentModel.TypeDescriptionProviderSharedState
System.ComponentModel.TypeDescriptorSharedState
System.ComponentModel.TypeListConverterSharedState
System.ComponentModel.UInt16ConverterSharedState
System.ComponentModel.UInt32ConverterSharedState
System.ComponentModel.UInt64ConverterSharedState
System.ComponentModel.WarningExceptionSharedState
System.ComponentModel.WeakHashtableSharedState
System.ComponentModel.Win32ExceptionSharedState
System.Diagnostics.ConsoleTraceListenerSynchronization
System.Diagnostics.Debug.get_Listeners()SharedState
System.Diagnostics.DefaultTraceListenerSynchronization
System.Diagnostics.DelimitedListTraceListenerSynchronization
System.Diagnostics.EventLog.get_SynchronizingObject()Synchronization
System.Diagnostics.EventLogTraceListenerSynchronization
System.Diagnostics.PerformanceCounterSharedState, Synchronization
System.Diagnostics.PerformanceCounterCategorySharedState, Synchronization
System.Diagnostics.ProcessSelfAffectingProcessMgmt, ExternalProcessMgmt, SharedState, Synchronization
System.Diagnostics.ProcessStartInfoSelfAffectingProcessMgmt, SharedState
System.Diagnostics.ProcessThreadSelfAffectingThreading, SelfAffectingProcessMgmt
System.Diagnostics.SharedPerformanceCounterSharedState, Synchronization
System.Diagnostics.TextWriterTraceListenerSynchronization
System.Diagnostics.Trace.get_Listeners()SharedState
System.Diagnostics.TraceListenerSynchronization
System.Diagnostics.XmlWriterTraceListenerSynchronization
System.IO.Compression.DeflateStream.BeginRead()ExternalThreading
System.IO.Compression.DeflateStream.BeginWrite()ExternalThreading
System.IO.Compression.GZipStream.BeginRead()ExternalThreading
System.IO.Compression.GZipStream.BeginWrite()ExternalThreading
System.IO.Ports.SerialStream.BeginRead()ExternalThreading
System.IO.Ports.SerialStream.BeginWrite()ExternalThreading
System.Media.SoundPlayerUI
System.Media.SystemSoundUI
System.Media.SystemSoundsUI
System.Net.ConnectStream.BeginRead()ExternalThreading
System.Net.ConnectStream.BeginWrite()ExternalThreading
System.Net.Dns.BeginGetHostAddresses()ExternalThreading
System.Net.Dns.BeginGetHostByName()ExternalThreading
System.Net.Dns.BeginGetHostEntry()ExternalThreading
System.Net.Dns.BeginResolve()ExternalThreading
System.Net.FileWebRequest.BeginGetRequestStream()ExternalThreading
System.Net.FileWebRequest.BeginGetResponse()ExternalThreading
System.Net.FtpDataStream.BeginRead()ExternalThreading
System.Net.FtpDataStream.BeginWrite()ExternalThreading
System.Net.FtpWebRequest.BeginGetRequestStream()ExternalThreading
System.Net.FtpWebRequest.BeginGetResponse()ExternalThreading
System.Net.HttpListener.BeginGetContext()ExternalThreading
System.Net.HttpRequestStream.BeginRead()ExternalThreading
System.Net.HttpRequestStream.BeginWrite()ExternalThreading
System.Net.HttpResponseStream.BeginRead()ExternalThreading
System.Net.HttpResponseStream.BeginWrite()ExternalThreading
System.Net.HttpWebRequest.BeginGetRequestStream()ExternalThreading
System.Net.HttpWebRequest.BeginGetResponse()ExternalThreading
System.Net.Mail.SmtpClient.SendAsync()ExternalThreading
System.Net.NetworkInformation.Ping.SendAsync()ExternalThreading
System.Net.PooledStream.BeginRead()ExternalThreading
System.Net.PooledStream.BeginWrite()ExternalThreading
System.Net.Security.NegotiateStream.BeginAuthenticateAsClient()ExternalThreading
System.Net.Security.NegotiateStream.BeginAuthenticateAsServer()ExternalThreading
System.Net.Security.NegotiateStream.BeginRead()ExternalThreading
System.Net.Security.NegotiateStream.BeginWrite()ExternalThreading
System.Net.Security.SslStream.BeginAuthenticateAsClient()ExternalThreading
System.Net.Security.SslStream.BeginAuthenticateAsServer()ExternalThreading
System.Net.Security.SslStream.BeginRead()ExternalThreading
System.Net.Security.SslStream.BeginWrite()ExternalThreading
System.Net.Sockets.NetworkStream.BeginRead()ExternalThreading
System.Net.Sockets.NetworkStream.BeginWrite()ExternalThreading
System.Net.Sockets.Socket.BeginAccept()ExternalThreading
System.Net.Sockets.Socket.BeginConnect()ExternalThreading
System.Net.Sockets.Socket.BeginDisconnect()ExternalThreading
System.Net.Sockets.Socket.BeginReceive()ExternalThreading
System.Net.Sockets.Socket.BeginReceiveFrom()ExternalThreading
System.Net.Sockets.Socket.BeginSend()ExternalThreading
System.Net.Sockets.Socket.BeginSendFile()ExternalThreading
System.Net.Sockets.Socket.BeginSendTo()ExternalThreading
System.Net.Sockets.TcpClient.BeginConnect()ExternalThreading
System.Net.Sockets.TcpListener.BeginAcceptSocket()ExternalThreading
System.Net.Sockets.TcpListener.BeginAcceptTcpClient()ExternalThreading
System.Net.Sockets.UdpClient.BeginReceive()ExternalThreading
System.Net.Sockets.UdpClient.BeginSend()ExternalThreading
System.Net.SpnDictionary.get_SyncRoot()Synchronization
System.Net.WebClient.DownloadDataAsync()ExternalThreading
System.Net.WebClient.DownloadFileAsync()ExternalThreading
System.Net.WebClient.DownloadStringAsync()ExternalThreading
System.Net.WebClient.OpenReadAsync()ExternalThreading
System.Net.WebClient.OpenWriteAsync()ExternalThreading
System.Net.WebClient.UploadDataAsync()ExternalThreading
System.Net.WebClient.UploadFileAsync()ExternalThreading
System.Net.WebClient.UploadStringAsync()ExternalThreading
System.Net.WebClient.UploadValuesAsync()ExternalThreading
System.Net.WebRequest.BeginGetRequestStream()ExternalThreading
System.Net.WebRequest.BeginGetResponse()Synchronization
System.Text.RegularExpressions.Group.Synchronized()Synchronization
System.Text.RegularExpressions.Match.Synchronized()Synchronization
System.Text.RegularExpressions.Regex.CompileToAssembly()MayLeakOnAbort
System.Threading.SemaphoreExternalThreading, Synchronization
System.Timers.TimerExternalThreading, Synchronization
WebClientWriteStream.BeginRead()ExternalThreading
WebClientWriteStream.BeginWrite()ExternalThreading

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.Data.dll
Disallowed Types and Members in System.Core.dll

Community Additions

ADD
Show:
© 2016 Microsoft