Sprache

PullSubscription.Script(ScriptOptions) Methode

Definition

Gibt ein Transact-SQL Skript zurück, um das Pull-Abonnement basierend auf der aktuellen Eigenschaftseinstellung des PullSubscription Objekts zu erstellen oder zu löschen.

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 Objektwert, der die Skriptoptionen angibt.

Gibt zurück

Ein String Wert, der das Transact-SQL 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: