DacActionValidator 类
Validates that the requirements of the DAC action (install, upgrade, or uninstall) are in place.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Dac..::..DacActionValidator
命名空间: Microsoft.SqlServer.Management.Dac
程序集: Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)
语法
声明
Public NotInheritable Class DacActionValidator
用法
public static class DacActionValidator
public ref class DacActionValidator abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DacActionValidator = class end
public final class DacActionValidator
DacActionValidator 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
ValidateForInstall(ServerConnection, DacType) | Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type. | |
ValidateForInstall(SqlStoreConnection, DacType) | 已过时。Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type. | |
ValidateForInstall(ServerConnection, DacType, Boolean) | Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type. | |
ValidateForInstall(SqlStoreConnection, DacType, Boolean) | 已过时。Validates that the specified connection credentials meet the requirements for installing the specified DAC type, and, optionally, whether the instance of the Database Engine meets the requirements. | |
ValidateForUninstall | Validates that the specified instance of the Database Engine meets requirements for deleting the specified DAC isntance. | |
ValidateForUpgrade(DacInstance, DacInstance) | Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type. | |
ValidateForUpgrade(DacInstance, DacInstance, Boolean) | Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type. |
页首
注释
The DacAction class verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions. For an upgrade or uninstall, it also verifies that the current DAC instance can support the action.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。