Sprache

DistributionPublisher.Script(ScriptOptions) Methode

Definition

Erzeugt ein Transact-SQL-Skript, das zum Installieren oder Deinstallieren des Publisher verwendet werden kann.

public:
 System::String ^ Script(Microsoft::SqlServer::Replication::ScriptOptions scriptOption);
public string Script(Microsoft.SqlServer.Replication.ScriptOptions scriptOption);
member this.Script : Microsoft.SqlServer.Replication.ScriptOptions -> string
Public Function Script (scriptOption As ScriptOptions) As String

Parameter

scriptOption
ScriptOptions

Ein ScriptOptions Wert, der die Skriptoptionen angibt.

Gibt zurück

Ein String Wert, der das Skript enthält.

Hinweise

Der Parameter scriptOption bestimmt, ob ein Erstellungsskript oder ein Löschskript zurückgegeben wird. Diese Methode kann für ein bestehendes Objekt oder ein neues Objekt verwendet werden.

Gilt für: