Partager via


CommandCollection.AddScript Method

Definition

Overloads

AddScript(String)

Adds a new script command.

AddScript(String, Boolean)

Adds a new scrip command for given script.

AddScript(String)

Adds a new script command.

public:
 void AddScript(System::String ^ scriptContents);
public:
 void AddScript(Platform::String ^ scriptContents);
void AddScript(std::wstring const & scriptContents);
public void AddScript (string scriptContents);
member this.AddScript : string -> unit
Public Sub AddScript (scriptContents As String)

Parameters

scriptContents
String

Script contents.

Exceptions

scriptContents is null.

Applies to

AddScript(String, Boolean)

Adds a new scrip command for given script.

public:
 void AddScript(System::String ^ scriptContents, bool useLocalScope);
public:
 void AddScript(Platform::String ^ scriptContents, bool useLocalScope);
void AddScript(std::wstring const & scriptContents, bool useLocalScope);
public void AddScript (string scriptContents, bool useLocalScope);
member this.AddScript : string * bool -> unit
Public Sub AddScript (scriptContents As String, useLocalScope As Boolean)

Parameters

scriptContents
String

Script contents.

useLocalScope
Boolean

If true local scope is used to run the script command.

Exceptions

scriptContents is null.

Applies to