ServiceMasterKey.Regenerate 方法 (Boolean)

Regenerates the service master key with the option to force the regeneration, and removes all items that cannot be successfully decrypted.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub Regenerate ( _
    forceRegeneration As Boolean _
)
用法
Dim instance As ServiceMasterKey 
Dim forceRegeneration As Boolean

instance.Regenerate(forceRegeneration)
public void Regenerate(
    bool forceRegeneration
)
public:
void Regenerate(
    bool forceRegeneration
)
member Regenerate : 
        forceRegeneration:bool -> unit
public function Regenerate(
    forceRegeneration : boolean
)

参数

  • forceRegeneration
    类型:System.Boolean
    A Boolean value that specifies whether to drop the items that cannot be successfully regenerated.If True, regeneration of the master key is forced and all items that cannot be regenerated are dropped.If False, regeneration of the master key is not forced.

示例

使用加密

请参阅

参考

ServiceMasterKey 类

Regenerate 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

加密层次结构

ALTER SERVICE MASTER KEY (Transact-SQL)