Transmitter5SetUrl Method |
Set the web service URL. Used to override the configured web service address, for example to programmatically switch between the test and production servers.
Namespace: SwissDecTXAssembly: SwissDecTX.Transmitter5 (in SwissDecTX.Transmitter5.dll) Version: 5.0.0.0 (5.0.0.0)
Syntaxpublic void SetUrl(
string url
)
Public Sub SetUrl (
url As String
)
public:
virtual void SetUrl(
String^ url
) sealed
Parameters
- url String
- The fully qualified URI of the service, starting with http://... or https://...
ExampleCalling Transmitter.SetUrl()
using SwissDecTX;
try {
var tx = new Transmitter5();
tx.SetUrl("https://...");
} catch (Exception ex) {
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
See Also