Недопустимые типы и элементы в библиотеке mscorlib.dll

Применимо к:SQL Server

SQL Server программирование CLR запрещает использование типа или члена с элементом HostProtectionAttribute, указывающим перечисление System.Security.Permissions.HostProtectionResource со значением ExternalProcessMgmt, ExternalThreading, MayLeakOnAbort, SecurityInfrastructure, SelfAffectingProcessMgmnt, SelfAffectingThreading, SharedState , синхронизация или пользовательский интерфейс. В следующей таблице перечислены типы и элементы сборки mscorlib.dll, значения атрибута защиты узла которых не допускаются.

Примечание

Этот список был создан из поддерживаемых сборок. Дополнительные сведения см. в разделе Поддерживаемые библиотеки платформа .NET Framework.

Тип или элемент Значения атрибутов защиты узла
SyncStream.BeginRead() ExternalThreading
SyncStream.BeginWrite() ExternalThreading
System.Collections.ArrayList.Synchronized() Синхронизация
System.Collections.Hashtable.Synchronized() Синхронизация
System.Collections.Queue.Synchronized() Синхронизация
System.Collections.SortedList.Synchronized() Синхронизация
System.Collections.Stack.Synchronized() Синхронизация
System.Console.Beep() Пользовательский интерфейс
System.Console.get_Error() Пользовательский интерфейс
System.Console.get_In() Пользовательский интерфейс
System.Console.get_KeyAvailable() Пользовательский интерфейс
System.Console.get_Out() Пользовательский интерфейс
System.Console.OpenStandardError() Пользовательский интерфейс
System.Console.OpenStandardInput() Пользовательский интерфейс
System.Console.OpenStandardOutput() Пользовательский интерфейс
System.Console.Read() Пользовательский интерфейс
System.Console.ReadKey() Пользовательский интерфейс
System.Console.ReadLine() Пользовательский интерфейс
System.Console.SetError() Пользовательский интерфейс
System.Console.SetIn() Пользовательский интерфейс
System.Console.SetOut() Пользовательский интерфейс
System.Console.Write() Пользовательский интерфейс
System.Console.WriteLine() Пользовательский интерфейс
System.Diagnostics.LogMessageEventHandler ExternalThreading, Synchronization
System.IO.FileStream.BeginRead() ExternalThreading
System.IO.FileStream.BeginWrite() ExternalThreading
System.IO.Stream.Synchronized() Синхронизация
System.IO.TextReader.Synchronized() Синхронизация
System.IO.TextWriter.Synchronized() Синхронизация
System.Reflection.Emit.AssemblyBuilder MayLeakOnAbort
System.Reflection.Emit.ConstructorBuilder MayLeakOnAbort
System.Reflection.Emit.CustomAttributeBuilder MayLeakOnAbort
System.Reflection.Emit.EnumBuilder MayLeakOnAbort
System.Reflection.Emit.EventBuilder MayLeakOnAbort
System.Reflection.Emit.FieldBuilder MayLeakOnAbort
System.Reflection.Emit.MethodBuilder MayLeakOnAbort
System.Reflection.Emit.MethodRental MayLeakOnAbort
System.Reflection.Emit.ModuleBuilder MayLeakOnAbort
System.Reflection.Emit.PropertyBuilder MayLeakOnAbort
System.Reflection.Emit.TypeBuilder MayLeakOnAbort
System.Reflection.Emit.UnmanagedMarshal MayLeakOnAbort
System.Security.Principal.WindowsPrincipal SecurityInfrastructure
System.Threading.AutoResetEvent ExternalThreading, Synchronization
System.Threading.EventWaitHandle ExternalThreading, Synchronization
System.Threading.ManualResetEvent ExternalThreading, Synchronization
System.Threading.Monitor ExternalThreading, Synchronization
System.Threading.Mutex ExternalThreading, Synchronization
System.Threading.ReaderWriterLock ExternalThreading, 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.ThreadPool ExternalThreading, Synchronization
System.Threading.Timer ExternalThreading, Synchronization
System.Threading.TimerBase ExternalThreading, Synchronization

См. также:

Атрибуты защиты узла и программирование средств интеграции со средой CLR
Запрещенные типы и элементы в Microsoft.VisualBasic.dll
Запрещенные типы и элементы в System.dll
Недопустимые типы и элементы в библиотеке System.Data.dll
Недопустимые типы и элементы в библиотеке System.Core.dll