Microsoft.VisualBasic.dll 中禁用的类型和成员

如果类型或成员具有 HostProtectionAttribute 属性,而该属性指定了值为 ExternalProcessMgmt、ExternalThreading、MayLeakOnAbort、SecurityInfrastructure、SelfAffectingProcessMgmnt、SelfAffectingThreading、 SharedState、Synchronization 或 UI 的 System.Security.Permissions.HostProtectionResource 枚举,则 SQL Server 公共语言集成 (CLR) 编程不允许使用这样的类型或成员。下表列出了不允许其宿主保护属性 (HPA) 值的 Microsoft.VisualBasic.dll 程序集的成员和类型。

注意注意

该列表是从 .NET Framework 版本 2.0 SP1 的受支持程序集生成的。有关详细信息,请参阅 支持的 .NET Framework 库

类型或成员

HPA 值

Microsoft.VisualBasic.ApplicationServices.ApplicationBase

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.ApplicationBase.ChangeCulture()

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.ApplicationBase.get_Info()

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.AssemblyInfo

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.BuiltInRoleConverter

SharedState

Microsoft.VisualBasic.ApplicationServices.ConsoleApplicationBase

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.User

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.WebUser

ExternalProcessMgmt

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase

ExternalProcessMgmt

Microsoft.VisualBasic.CompilerServices.HostServices

SharedState

Microsoft.VisualBasic.CompilerServices.ProjectData.EndApp()

SelfAffectingProcessMgmt

Microsoft.VisualBasic.CompilerServices.Utils.SetCultureInfo()

SelfAffectingThreading

Microsoft.VisualBasic.DateAndTime.set_DateString()

ExternalProcessMgmt

Microsoft.VisualBasic.DateAndTime.set_TimeOfDay()

ExternalProcessMgmt

Microsoft.VisualBasic.DateAndTime.set_TimeString()

ExternalProcessMgmt

Microsoft.VisualBasic.DateAndTime.set_Today()

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Audio

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Clock

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Computer

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.ComputerInfo

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Keyboard

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Mouse

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Network

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.Ports

ExternalProcessMgmt

Microsoft.VisualBasic.Devices.ServerComputer

ExternalProcessMgmt

Microsoft.VisualBasic.FileIO.FileSystem

ExternalProcessMgmt

Microsoft.VisualBasic.FileIO.SpecialDirectories

ExternalProcessMgmt

Microsoft.VisualBasic.FileIO.TextFieldParser..ctor()

ExternalProcessMgmt

Microsoft.VisualBasic.FileSystem

ExternalProcessMgmt

Microsoft.VisualBasic.Interaction.CreateObject()

ExternalProcessMgmt

Microsoft.VisualBasic.Interaction.DeleteSetting()

ExternalProcessMgmt

Microsoft.VisualBasic.Interaction.GetObject()

ExternalProcessMgmt

Microsoft.VisualBasic.Interaction.InputBox()

UI

Microsoft.VisualBasic.Interaction.MsgBox()

UI

Microsoft.VisualBasic.Logging.AspLog

ExternalProcessMgmt

Microsoft.VisualBasic.Logging.FileLogTraceListener..ctor()

ExternalProcessMgmt

Microsoft.VisualBasic.Logging.FileLogTraceListener.Close()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.Dispose()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.Flush()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.GetSupportedAttributes()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.TraceData()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.TraceEvent()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.Write()

Synchronization

Microsoft.VisualBasic.Logging.FileLogTraceListener.WriteLine()

Synchronization

Microsoft.VisualBasic.Logging.Log

ExternalProcessMgmt

Microsoft.VisualBasic.MyServices.ClipboardProxy

ExternalProcessMgmt

Microsoft.VisualBasic.MyServices.FileSystemProxy

ExternalProcessMgmt

Microsoft.VisualBasic.MyServices.RegistryProxy

ExternalProcessMgmt

Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy

ExternalProcessMgmt