.NET Based OPC UA Client/Server SDK  3.1.0.500
UnifiedAutomation.UaBase.FirewallUtils Class Reference

Defines methods used to access the windows firewall configuration. More...

Static Public Member Functions

static void SetFirewallAccess (SecuredApplication application, string executablePath)
 Configures the firewall to allow access to the specified application. More...
 
static void SetFirewallAccess (string applicationName, string executablePath, IList< string > baseAddresses)
 Configures the firewall to allow access to the specified application. More...
 
static bool CheckFirewallAccess (string executablePath, IList< string > baseAddresses)
 Checks if the firewall has been configured. More...
 
static int[] GetFirewallAccess (string executablePath)
 Returns the firewall access granted to an application. More...
 
static void SetFirewallAccess (string executablePath, params int[] ports)
 Returns the firewall access granted to an application. More...
 
static void RemoveFirewallAccess (params int[] ports)
 Removes the firewall access granted to the specified ports. More...
 
static void RemoveFirewallAccess (SecuredApplication application, string executablePath)
 Configures the firewall to remove access to the specified application. More...
 
static void RemoveFirewallAccess (string executablePath, IList< string > baseAddresses)
 Configures the firewall to remove access to the specified application. More...
 

Detailed Description

Defines methods used to access the windows firewall configuration.

Member Function Documentation

static bool UnifiedAutomation.UaBase.FirewallUtils.CheckFirewallAccess ( string  executablePath,
IList< string >  baseAddresses 
)
inlinestatic

Checks if the firewall has been configured.

Parameters
executablePathThe executable path.
baseAddressesThe base addresses.
Returns
Returns true if the application has its firewall access configured.
static int [] UnifiedAutomation.UaBase.FirewallUtils.GetFirewallAccess ( string  executablePath)
inlinestatic

Returns the firewall access granted to an application.

Parameters
executablePathThe executable path.
Returns
The ports configured for the executable.
static void UnifiedAutomation.UaBase.FirewallUtils.RemoveFirewallAccess ( params int[]  ports)
inlinestatic

Removes the firewall access granted to the specified ports.

Parameters
portsThe ports.
static void UnifiedAutomation.UaBase.FirewallUtils.RemoveFirewallAccess ( SecuredApplication  application,
string  executablePath 
)
inlinestatic

Configures the firewall to remove access to the specified application.

Parameters
applicationThe application.
executablePathThe executable path.
static void UnifiedAutomation.UaBase.FirewallUtils.RemoveFirewallAccess ( string  executablePath,
IList< string >  baseAddresses 
)
inlinestatic

Configures the firewall to remove access to the specified application.

Parameters
executablePathThe executable path.
baseAddressesThe base addresses.
static void UnifiedAutomation.UaBase.FirewallUtils.SetFirewallAccess ( SecuredApplication  application,
string  executablePath 
)
inlinestatic

Configures the firewall to allow access to the specified application.

Parameters
applicationThe application.
executablePathThe executable path.
static void UnifiedAutomation.UaBase.FirewallUtils.SetFirewallAccess ( string  applicationName,
string  executablePath,
IList< string >  baseAddresses 
)
inlinestatic

Configures the firewall to allow access to the specified application.

Parameters
applicationNameName of the application.
executablePathThe executable path.
baseAddressesThe base addresses.
static void UnifiedAutomation.UaBase.FirewallUtils.SetFirewallAccess ( string  executablePath,
params int[]  ports 
)
inlinestatic

Returns the firewall access granted to an application.

Parameters
executablePathThe executable path.
portsThe ports.

The documentation for this class was generated from the following file: