ServiceConfigSettings Class

Definition

表示服务配置设置。Represents the service configuration settings.

public ref class ServiceConfigSettings abstract : Microsoft::SqlServer::Configuration::Settings, Microsoft::SqlServer::Configuration::IServiceConfig
public abstract class ServiceConfigSettings : Microsoft.SqlServer.Configuration.Settings, Microsoft.SqlServer.Configuration.IServiceConfig
type ServiceConfigSettings = class
    inherit Settings
    interface IServiceConfig
Public MustInherit Class ServiceConfigSettings
Inherits Settings
Implements IServiceConfig
Inheritance
ServiceConfigSettings
Derived
Implements

Constructors

ServiceConfigSettings()

初始化 ServiceConfigSettings 类的新实例。Initializes a new instance of the ServiceConfigSettings class.

Fields

name

为服务指定名称。Specifies the name for the service.

password

指定服务的密码。Specifies the password for the service.

serviceDisplayName

指定该服务的显示名称。Specifies the display name of the service.

startMode

指定服务的启动模式。Specifies the start mode of the service.

userName

指定服务的用户名。Specifies the user name for the service.

Properties

IsNameEnabled

获取或设置一个值,该值指示是否启用服务名。Gets or sets a value that indicates whether service name is enabled.

IsPasswordEnabled

获取或设置一个值,该值指示是否启用服务密码。Gets or sets a value that indicates whether service password is enabled.

IsStartModeEnabled

获取或设置一个值,该值指示是否启用启动模式。Gets or sets a value that indicates whether start mode is enabled.

IsUserNameEnabled

获取或设置一个值,该值指示是否启用用户名。Gets or sets a value that indicates whether user name is enabled.

Name

获取或设置服务名称。Gets or sets the name for the service.

Password

获取或设置服务的密码。Gets or sets the password for the service.

PasswordBindingKey

获取或设置服务的密码绑定键。Gets or sets the password binding key of the service.

ServiceDisplayName

获取或设置服务的显示名称。Gets or sets the display name of the service.

StartMode

获取或设置服务的启动模式。Gets or sets the start mode of the service.

StartModeBindingKey

获取或设置服务的启动模式绑定键。Gets or sets the start mode binding key for the service.

UserName

获取或设置该服务的用户名。Gets or sets the user name for the service.

UserNameBindingKey

获取或设置服务的用户名绑定键。Gets or sets the user name binding key for the service.

Methods

Calculate()

计算所有配置设置。Calculates all the configuration settings.

(Inherited from Settings)
CreateProperty<T>(String)

创建配置设置的属性。Creates a property for the configuration settings.

(Inherited from Settings)
Equals(Settings)

确定两个对象实例是否相等。Determines whether two object instances are equal.

(Inherited from Settings)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(Inherited from Settings)
InitializeProperties()

将属性初始化为其默认值。Initializes the properties to its default values.

ValidateSettings()

获取验证的设置。Gets the settings for the validation.

(Inherited from Settings)

Applies to