Configuration Options
GetOption
- Returns the value of the configuration option specified in the first paramater as an object.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
{
string errorString = "";
string networknode = "localhost";
object fileName = oasc.GetOption("Default Tag Configuration File", networknode, ref errorString);
if (errorString == "Success")
{
Console.WriteLine(fileName);
}
else
{
Console.WriteLine(errorString);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
If True Then
Dim errorString As String = ""
Dim networknode As String = "localhost"
Dim fileName As Object = oasc.GetOption("Default Tag Configuration File", networknode, errorString)
If errorString = "Success" Then
Console.WriteLine(fileName)
Else
Console.WriteLine(errorString)
End If
End If
End Sub
End Class
End Namespace
SetOption
- Sets a Configuration Option.
- First parameter is the option name. Second parameter is the option value.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
{
string errorString = "";
string networknode = "localhost";
string resultString = oasc.SetOption("Default Tag Configuration File", @"C:\Tags\DemoTags.Tags", networknode, ref errorString);
if (errorString == "Success")
{
Console.WriteLine(resultString);
}
else
{
Console.WriteLine(errorString);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
If True Then
Dim errorString As String = ""
Dim networknode As String = "localhost"
Dim resultString As String = oasc.SetOption("Default Tag Configuration File", "C:\Tags\DemoTags.Tags", networknode, errorString)
If errorString = "Success" Then
Console.WriteLine(resultString)
Else
Console.WriteLine(errorString)
End If
End If
End Sub
End Class
End Namespace
GetOptions
Returns two arrays: (1) an array of option names; (2) an array of options values.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
{
string errorString = "";
string networknode = "localhost";
object[] arrOptions = oasc.GetOptions(false, networknode, ref errorString);
if (errorString == "Success")
{
object[] options = (object[])arrOptions[0];
object[] values = (object[])arrOptions[1];
for (int i = 0; i < options.Length; i++)
{
Console.WriteLine(options[i] + "|" + values[i]);
}
}
else
{
Console.WriteLine(errorString);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
If True Then
Dim errorString As String = ""
Dim networknode As String = "localhost"
Dim arrOptions As Object() = oasc.GetOptions(False, networknode, errorString)
If errorString = "Success" Then
Dim options As Object() = CType(arrOptions(0), Object())
Dim values As Object() = CType(arrOptions(1), Object())
For i As Integer = 0 To options.Length - 1
Console.WriteLine(options(i) & "|" & values(i))
Next
Else
Console.WriteLine(errorString)
End If
End If
End Sub
End Class
End Namespace
SetOptions
- Sets the OAS configuration options found under Configure >> Options.
- The first paramater is a string array of the headers of the options to set. The second paramater is an object array of the option values.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
{
string errorString = "";
string networknode = "localhost";
string[] OptionNames = new string[2];
object[] OptionValues = new object[2];
OptionNames[0] = "Load Default Tag Configuration";
OptionValues[0] = true;
OptionNames[1] = "Default Tag Configuration File";
OptionValues[1] = @"C:\Tags\DemoTags.Tags";
string resultString = oasc.SetOptions(OptionNames, OptionValues, networknode, ref errorString);
if (errorString == "Success")
{
Console.WriteLine(resultString);
}
else
{
Console.WriteLine(errorString);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
If True Then
Dim errorString As String = ""
Dim networknode As String = "localhost"
Dim OptionNames As String() = New String(1) {}
Dim OptionValues As Object() = New Object(1) {}
OptionNames(0) = "Load Default Tag Configuration"
OptionValues(0) = True
OptionNames(1) = "Default Tag Configuration File"
OptionValues(1) = "C:\Tags\DemoTags.Tags"
Dim resultString As String = oasc.SetOptions(OptionNames, OptionValues, networknode, errorString)
If errorString = "Success" Then
Console.WriteLine(resultString)
Else
Console.WriteLine(errorString)
End If
End If
End Sub
End Class
End Namespace
GetLoadDefaultTagConfiguration
- GetLoadDefaultTagConfiguration Function is to obtain automatic loading of the DefaultTagConfigurationFile.
- Returns a boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
bool CurrentValue = oasc.GetLoadDefaultTagConfiguration(networknode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine("ErrorString");
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultTagConfiguration(networknode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine("ErrorString")
End If
End Sub
End Class
End Namespace
SetLoadDefaultTagConfiguration
- SetLoadDefaultTagConfiguration Subroutine sets automatic loading of the DefaultTagConfigurationFile.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
oasc.SetLoadDefaultTagConfiguration(true, networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
Console.WriteLine("Set Successful");
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
oasc.SetLoadDefaultTagConfiguration(True, networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
Console.WriteLine("Set Successful")
End If
End Sub
End Class
End Namespace
GetDefaultTagConfigurationFile
- GetDefaultTagConfigurationFile Function returns Default Tag Configuration file to load when LoadDefaultTagConfiguration is enabled.
- Returns a String of the default Tag configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
string filename = "";
filename = oasc.GetDefaultTagConfigurationFile(networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{ {
if (filename == "")
{
Console.WriteLine("No file set.");
}
else
{
Console.WriteLine(filename);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim filename As String = ""
filename = oasc.GetDefaultTagConfigurationFile(networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
If filename = "" Then
Console.WriteLine("No file set.")
Else
Console.WriteLine(filename)
End If
End If
End Sub
End Class
End Namespace
SetDefaultTagConfigurationFile
- SetDefaultTagConfigurationFile Subroutine sets the Default Tag Configuration file to load when LoadDefaultTagConfiguration is enabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
string filename = "";
oasc.SetDefaultTagConfigurationFile(filename, networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
Console.WriteLine("File successfully set.");
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim filename As String = ""
oasc.SetDefaultTagConfigurationFile(filename, networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
Console.WriteLine("File successfully set.")
End If
End Sub
End Class
End Namespace
GetLoadDefaultDataLoggingConfiguration
- GetLoadDefaultDataLoggingConfiguration Function returns automatic loading of the DefaultDataLoggingConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
bool CurrentValue = oasc.GetLoadDefaultDataLoggingConfiguration(networknode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultDataLoggingConfiguration(networknode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultDataLoggingConfiguration
- SetLoadDefaultDataLoggingConfiguration Subroutine sets automatic loading of the DefaultDataLoggingConfigurationFile.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
oasc.SetLoadDefaultDataLoggingConfiguration(true, networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
Console.WriteLine("Set Successful");
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
oasc.SetLoadDefaultDataLoggingConfiguration(True, networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
Console.WriteLine("Set Successful")
End If
End Sub
End Class
End Namespace
GetDefaultDataLoggingConfigurationFile
- GetDefaultDataLoggingConfigurationFile Function returns the default Data Logging Configuration file to load when LoadDefaultDataLoggingConfiguration is enabled.
- Returns a String of the default Data Logging configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
string filename = "";
filename = oasc.GetDefaultDataLoggingConfigurationFile(networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
if (filename == "")
{
Console.WriteLine("No file set.");
}
else
{
Console.WriteLine(filename);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim filename As String = ""
filename = oasc.GetDefaultDataLoggingConfigurationFile(networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
If filename = "" Then
Console.WriteLine("No file set.")
Else
Console.WriteLine(filename)
End If
End If
End Sub
End Class
End Namespace
SetDefaultDataLoggingConfigurationFile
- SetDefaultDataLoggingConfigurationFile Subroutine sets the default Data Logging Configuration file to load when LoadDefaultDataLoggingConfiguration is enabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string ErrorString = "";
string networknode = "";
string filename = "";
oasc.SetDefaultDataLoggingConfigurationFile(filename, networknode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
Console.WriteLine("File successfully set.");
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim ErrorString As String = ""
Dim networknode As String = ""
Dim filename As String = ""
oasc.SetDefaultDataLoggingConfigurationFile(filename, networknode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
Console.WriteLine("File successfully set.")
End If
End Sub
End Class
End Namespace
GetLoadDefaultAlarmLoggingConfiguration
- GetLoadDefaultAlarmLoggingConfiguration Function returns automatic loading of the DefaultAlarmLoggingConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
bool CurrentValue = oasc.GetLoadDefaultAlarmLoggingConfiguration(NetworkNode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultAlarmLoggingConfiguration(NetworkNode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultAlarmLoggingConfiguration
- SetLoadDefaultAlarmLoggingConfiguration Subroutine sets automatic loading of the DefaultAlarmLoggingConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
Boolean setLoad = false;
string NetworkNode = "";
string ErrorString = "";
oasc.SetLoadDefaultAlarmLoggingConfiguration(setLoad, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim setLoad As Boolean = False
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
oasc.SetLoadDefaultAlarmLoggingConfiguration(setLoad, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetDefaultAlarmLoggingConfigurationFile
- GetDefaultAlarmLoggingConfigurationFile Function returns the default Tag Configuration file to load when LoadDefaultAlarmLoggingConfiguration is enabled.
- Returns a String of the default Data Logging configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
file = oasc.GetDefaultAlarmLoggingConfigurationFile(NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
Console.WriteLine(file);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
file = oasc.GetDefaultAlarmLoggingConfigurationFile(NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
Console.WriteLine(file)
End If
End Sub
End Class
End Namespace
SetDefaultAlarmLoggingConfigurationFile
- SetDefaultAlarmLoggingConfigurationFile Subroutine sets the default Tag Configuration file to load when LoadDefaultAlarmLoggingConfiguration is enabled.
- Returns a String of the default Data Logging configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string file = "";
string ErrorString = "";
oasc.SetDefaultAlarmLoggingConfigurationFile(file, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim file As String = ""
Dim ErrorString As String = ""
oasc.SetDefaultAlarmLoggingConfigurationFile(file, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetLoadDefaultAlarmNotificationConfiguration
- GetLoadDefaultAlarmNotificationConfiguration Function returns automatic loading of the DefaultAlarmNotificationConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
bool CurrentValue = oasc.GetLoadDefaultAlarmNotificationConfiguration(NetworkNode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultAlarmNotificationConfiguration(NetworkNode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultAlarmNotificationConfiguration
- SetLoadDefaultAlarmNotificationConfiguration Subroutine sets automatic loading of the DefaultAlarmNotificationConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
Boolean setLoad = false;
oasc.SetLoadDefaultAlarmNotificationConfiguration(setLoad, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim setLoad As Boolean = False
oasc.SetLoadDefaultAlarmNotificationConfiguration(setLoad, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetDefaultAlarmNotificationConfigurationFile
- GetDefaultAlarmNotificationConfigurationFile Function returns the default Tag Configuration file to load when LoadDefaultAlarmNotificationConfiguration is enabled.
- Returns a String of the default Data Logging configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
file = oasc.GetDefaultAlarmNotificationConfigurationFile(NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}else
{
if (file == "")
{
Console.WriteLine("No file is set.");
}
else
{
Console.WriteLine(file);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
file = oasc.GetDefaultAlarmNotificationConfigurationFile(NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
If file = "" Then
Console.WriteLine("No file is set.")
Else
Console.WriteLine(file)
End If
End If
End Sub
End Class
End Namespace
SetDefaultAlarmNotificationConfigurationFile
- SetDefaultAlarmNotificationConfigurationFile Subroutine sets the default Tag Configuration file to load when LoadDefaultAlarmNotificationConfiguration is enabled.
- Returns a String of the default Data Logging configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
oasc.SetDefaultAlarmNotificationConfigurationFile(file, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
oasc.SetDefaultAlarmNotificationConfigurationFile(file, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetLoadDefaultReportConfiguration
- GetLoadDefaultReportConfiguration Function returns automatic loading of the DefaultReportConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
bool CurrentValue = oasc.GetLoadDefaultReportConfiguration(NetworkNode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultReportConfiguration(NetworkNode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultReportConfiguration
- SetLoadDefaultReportConfiguration Subroutine sets automatic loading of the DefaultReportConfigurationFile.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
Boolean setFile = false;
oasc.SetLoadDefaultReportConfiguration(setFile, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim setFile As Boolean = False
oasc.SetLoadDefaultReportConfiguration(setFile, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetDefaultReportConfigurationFile
- GetDefaultReportConfigurationFile Function returns the default Report Configuration file to load when LoadDefaultReportConfiguration is enabled.
- Returns a String of the default Report configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
file = oasc.GetDefaultReportConfigurationFile(NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
else
{
if (file == "")
{
Console.WriteLine("No file is set.");
}
else
{
Console.WriteLine(file);
}
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
file = oasc.GetDefaultReportConfigurationFile(NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
Else
If file = "" Then
Console.WriteLine("No file is set.")
Else
Console.WriteLine(file)
End If
End If
End Sub
End Class
End Namespace
SetDefaultReportConfigurationFile
- SetDefaultReportConfigurationFile Function sets the default Report Configuration file to load when LoadDefaultReportConfiguration is enabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
oasc.SetDefaultReportConfigurationFile(file, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
oasc.SetDefaultReportConfigurationFile(file, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetLoadDefaultRecipeConfiguration
- GetLoadDefaultRecipeConfiguration Function returns automatic loading of the DefaultRecipeConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
bool CurrentValue = oasc.GetLoadDefaultRecipeConfiguration(NetworkNode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultRecipeConfiguration(NetworkNode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultRecipeConfiguration
- SetLoadDefaultRecipeConfiguration Function sets automatic loading of the DefaultRecipeConfigurationFile.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
Boolean setFile = false;
oasc.SetLoadDefaultRecipeConfiguration(setFile, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim setFile As Boolean = False
oasc.SetLoadDefaultRecipeConfiguration(setFile, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetDefaultRecipeConfigurationFile
- GetDefaultRecipeConfigurationFile Function returns the default Recipe Configuration file to load when LoadDefaultRecipeConfiguration is enabled.
- Returns a String of the default Recipe configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
file = oasc.GetDefaultRecipeConfigurationFile(NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Private Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
file = oasc.GetDefaultRecipeConfigurationFile(NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetDefaultRecipeConfigurationFile
- SetDefaultRecipeConfigurationFile Subroutine sets the default Recipe Configuration file to load when LoadDefaultRecipeConfiguration is enabled.
- Returns a String of the default Recipe configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
oasc.SetDefaultRecipeConfigurationFile(file, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
oasc.SetDefaultRecipeConfigurationFile(file, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetLoadDefaultSecurityConfiguration
- GetLoadDefaultSecurityConfiguration Function returns automatic loading of the DefaultSecurityConfigurationFile.
- Returns a Boolean, True for enabled, False for disabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
bool CurrentValue = oasc.GetLoadDefaultSecurityConfiguration(NetworkNode, ref ErrorString);
if (ErrorString == "Success")
{
if (CurrentValue)
{
Console.WriteLine("Enabled");
}
else
{
Console.WriteLine("Disabled");
}
}
else
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim CurrentValue As Boolean = oasc.GetLoadDefaultSecurityConfiguration(NetworkNode, ErrorString)
If ErrorString = "Success" Then
If CurrentValue Then
Console.WriteLine("Enabled")
Else
Console.WriteLine("Disabled")
End If
Else
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetLoadDefaultSecurityConfiguration
- SetLoadDefaultSecurityConfiguration Function sets automatic loading of the DefaultSecurityConfigurationFile.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
Boolean setFile = false;
oasc.SetLoadDefaultSecurityConfiguration(setFile, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim setFile As Boolean = False
oasc.SetLoadDefaultSecurityConfiguration(setFile, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
GetDefaultSecurityConfigurationFile
- GetDefaultSecurityConfigurationFile Function returns the default Security Configuration file to load when LoadDefaultSecurityConfiguration is enabled.
- Returns a String of the default Security configuration file to load when the Service first starts.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
file = oasc.GetDefaultSecurityConfigurationFile(NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
file = oasc.GetDefaultSecurityConfigurationFile(NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace
SetDefaultSecurityConfigurationFile
- SetDefaultSecurityConfigurationFile Subroutine sets the default Security Configuration file to load when LoadDefaultSecurityConfiguration is enabled.
- NetworkNode is the name of the network node of the OAS Service to connect to. Leave blank for localhost connection.
- Optional ErrorString will be set to Success when function is successful and an error message when in error.
C#
using System;
namespace OASDataSample
{
class Program
{
static OASConfig.Config oasc = new OASConfig.Config();
static void Main(string[] args)
{
string NetworkNode = "";
string ErrorString = "";
string file = "";
oasc.SetDefaultSecurityConfigurationFile(file, NetworkNode, ref ErrorString);
if (ErrorString != "Success")
{
Console.WriteLine(ErrorString);
}
}
}
}
VB
Imports System
Namespace OASDataSample
Class Program
Shared oasc As OASConfig.Config = New OASConfig.Config()
Public Shared Sub Main(ByVal args As String())
Dim NetworkNode As String = ""
Dim ErrorString As String = ""
Dim file As String = ""
oasc.SetDefaultSecurityConfigurationFile(file, NetworkNode, ErrorString)
If ErrorString <> "Success" Then
Console.WriteLine(ErrorString)
End If
End Sub
End Class
End Namespace