DatabaseEncryptionKey.Script DatabaseEncryptionKey.Script DatabaseEncryptionKey.Script Method

Definition

Generates a script for a database encryption key object.

Overloads

Script() Script() Script()

Generates a script for a database encryption key object with the default values.

Script(ScriptingOptions) Script(ScriptingOptions)

Generates a script for a database encryption key object with the specific scripting options.

Script() Script() Script()

Generates a script for a database encryption key object with the default values.

public:
 virtual System::Collections::Specialized::StringCollection ^ Script();
public System.Collections.Specialized.StringCollection Script ();
Public Function Script () As StringCollection
Returns

A list of Transact-SQL statements in the script.

Implements

Script(ScriptingOptions) Script(ScriptingOptions)

Generates a script for a database encryption key object with the specific scripting options.

public:
 virtual System::Collections::Specialized::StringCollection ^ Script(Microsoft::SqlServer::Management::Smo::ScriptingOptions ^ scriptingOptions);
public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Smo.ScriptingOptions scriptingOptions);
Parameters
scriptingOptions
ScriptingOptions ScriptingOptions ScriptingOptions

The scripting options object.

Returns

The collection of script for a database encryption key.

Implements

Applies to