Disallowed Types and Members in mscorlib.dll

Disallowed Types and Members in mscorlib.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 mscorlib.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)
SyncStream.BeginRead()ExternalThreading
SyncStream.BeginWrite()ExternalThreading
System.Collections.ArrayList.Synchronized()Synchronization
System.Collections.Hashtable.Synchronized()Synchronization
System.Collections.Queue.Synchronized()Synchronization
System.Collections.SortedList.Synchronized()Synchronization
System.Collections.Stack.Synchronized()Synchronization
System.Console.Beep()UI
System.Console.get_Error()UI
System.Console.get_In()UI
System.Console.get_KeyAvailable()UI
System.Console.get_Out()UI
System.Console.OpenStandardError()UI
System.Console.OpenStandardInput()UI
System.Console.OpenStandardOutput()UI
System.Console.Read()UI
System.Console.ReadKey()UI
System.Console.ReadLine()UI
System.Console.SetError()UI
System.Console.SetIn()UI
System.Console.SetOut()UI
System.Console.Write()UI
System.Console.WriteLine()UI
System.Diagnostics.LogMessageEventHandlerExternalThreading, Synchronization
System.IO.FileStream.BeginRead()ExternalThreading
System.IO.FileStream.BeginWrite()ExternalThreading
System.IO.Stream.Synchronized()Synchronization
System.IO.TextReader.Synchronized()Synchronization
System.IO.TextWriter.Synchronized()Synchronization
System.Reflection.Emit.AssemblyBuilderMayLeakOnAbort
System.Reflection.Emit.ConstructorBuilderMayLeakOnAbort
System.Reflection.Emit.CustomAttributeBuilderMayLeakOnAbort
System.Reflection.Emit.EnumBuilderMayLeakOnAbort
System.Reflection.Emit.EventBuilderMayLeakOnAbort
System.Reflection.Emit.FieldBuilderMayLeakOnAbort
System.Reflection.Emit.MethodBuilderMayLeakOnAbort
System.Reflection.Emit.MethodRentalMayLeakOnAbort
System.Reflection.Emit.ModuleBuilderMayLeakOnAbort
System.Reflection.Emit.PropertyBuilderMayLeakOnAbort
System.Reflection.Emit.TypeBuilderMayLeakOnAbort
System.Reflection.Emit.UnmanagedMarshalMayLeakOnAbort
System.Security.Principal.WindowsPrincipalSecurityInfrastructure
System.Threading.AutoResetEventExternalThreading, Synchronization
System.Threading.EventWaitHandleExternalThreading, Synchronization
System.Threading.ManualResetEventExternalThreading, Synchronization
System.Threading.MonitorExternalThreading, Synchronization
System.Threading.MutexExternalThreading, Synchronization
System.Threading.ReaderWriterLockExternalThreading, Synchronization
System.Threading.Thread.AllocateDataSlot()ExternalThreading, SharedState
System.Threading.Thread.AllocateNamedDataSlot()ExternalThreading, SharedState
System.Threading.Thread.BeginCriticalRegion()ExternalThreading, Synchronization
System.Threading.Thread.EndCriticalRegion()ExternalThreading, Synchronization
System.Threading.Thread.FreeNamedDataSlot()ExternalThreading, SharedState
System.Threading.Thread.GetData()ExternalThreading, SharedState
System.Threading.Thread.GetNamedDataSlot()ExternalThreading, SharedState
System.Threading.Thread.Join()ExternalThreading, Synchronization
System.Threading.Thread.set_ApartmentState()Synchronization, SelfAffectingThreading
System.Threading.Thread.set_CurrentUICulture()ExternalThreading
System.Threading.Thread.set_IsBackground()SelfAffectingThreading
System.Threading.Thread.set_Name()ExternalThreading
System.Threading.Thread.set_Priority()SelfAffectingThreading
System.Threading.Thread.SetApartmentState()Synchronization, SelfAffectingThreading
System.Threading.Thread.SetData()ExternalThreading, SharedState
System.Threading.Thread.SpinWait()ExternalThreading, Synchronization
System.Threading.Thread.Start()ExternalThreading, Synchronization
System.Threading.Thread.TrySetApartmentState()Synchronization, SelfAffectingThreading
System.Threading.ThreadPoolExternalThreading, Synchronization
System.Threading.TimerExternalThreading, Synchronization
System.Threading.TimerBaseExternalThreading, Synchronization

Host Protection Attributes and CLR Integration Programming
Disallowed Types and Members in Microsoft.VisualBasic.dll
Disallowed Types and Members in System.dll
Disallowed Types and Members in System.Data.dll
Disallowed Types and Members in System.Core.dll

Community Additions

ADD
Show:
© 2016 Microsoft