ServiceMasterKey.Regenerate ServiceMasterKey.Regenerate ServiceMasterKey.Regenerate Method

Definition

Regenerates the database master key with the specified new password.

Overloads

Regenerate() Regenerate() Regenerate()

Regenerates the database master key by using the specified new password.

Regenerate(Boolean) Regenerate(Boolean) Regenerate(Boolean)

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

Regenerate() Regenerate() Regenerate()

Regenerates the database master key by using the specified new password.

public:
 void Regenerate();
public void Regenerate ();
Public Sub Regenerate ()

Examples

Using Encryption

Regenerate(Boolean) Regenerate(Boolean) Regenerate(Boolean)

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

public:
 void Regenerate(bool forceRegeneration);
public void Regenerate (bool forceRegeneration);
Public Sub Regenerate (forceRegeneration As Boolean)
Parameters
forceRegeneration
Boolean Boolean 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.

Examples

Using Encryption

Applies to