SessionOptions.AddRawSettings Method

Allows configuring any site settings using raw format as in an INI file.

Syntax

C#
public void AddRawSettings(string setting, string value)
VB.NET
Public Sub AddRawSettings(setting As String, value As String)

Parameters

Name Description
string setting Name of the setting.
string value Value of the setting.

Remarks

For example, to enable SSH compression and agent forwarding use:

sessionOptions.AddRawSettings("Compression", "1");
sessionOptions.AddRawSettings("AgentFwd", "1");

See list of raw settings available.

Advertisement