Share via


SymmetricKey.Drop Method (Boolean)

Removes a symmetric key and the provider key associated with it from the instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Drop ( _
    removeProviderKey As Boolean _
)
'Usage
Dim instance As SymmetricKey
Dim removeProviderKey As Boolean

instance.Drop(removeProviderKey)
public void Drop(
    bool removeProviderKey
)
public:
void Drop(
    bool removeProviderKey
)
member Drop : 
        removeProviderKey:bool -> unit 
public function Drop(
    removeProviderKey : boolean
)

Parameters

  • removeProviderKey
    Type: System.Boolean
    Specifies whether to remove the provider key.

Examples

Using Encryption