Class ConnectionProfile

Definition

Namespace:
Tizen.Network.Connection
Assembly:
Tizen.Network.Connection.dll
API Level:
3

This is the ConnectionProfile class. It provides event and properties of the connection profile.

C#
Copy
public class ConnectionProfile : IDisposable
Inheritance
ConnectionProfile
Derived
Implements

Properties

View Source

Id

The profile ID.

Declaration
C#
Copy
public string Id { get; }
Property Value
Type Description
String

Unique ID of the profile.

API Level: 3
View Source

InterfaceName

The name of the network interface.

Declaration
C#
Copy
public string InterfaceName { get; }
Property Value
Type Description
String

Network interface name, for example, eth0 and pdp0.

API Level: 3
View Source

IPv4Settings

The address information (IPv4).

Declaration
C#
Copy
public IAddressInformation IPv4Settings { get; }
Property Value
Type Description
IAddressInformation

Instance of IAddressInformation with IPV4 address.

API Level: 3
View Source

IPv6Settings

The address information (IPv6).

Declaration
C#
Copy
public IAddressInformation IPv6Settings { get; }
Property Value
Type Description
IAddressInformation

Instance of IAddressInformation with IPV6 address.

API Level: 3
View Source

Name

The profile name.

Declaration
C#
Copy
public string Name { get; }
Property Value
Type Description
String

User friendly name of the profile.

API Level: 3
View Source

ProxyAddress

The proxy address.

Declaration
C#
Copy
public string ProxyAddress { get; set; }
Property Value
Type Description
String

Proxy address of the connection.

Exceptions
Type Condition
NotSupportedException

Thrown during set when a feature is not supported.

ArgumentException

Thrown during set when a value is an invalid parameter.

ArgumentNullException

Thrown during set when a value is null.

InvalidOperationException

Thrown during set when a profile instance is invalid or when a method fails due to an invalid operation.

ObjectDisposedException

Thrown when an operation is performed on a disposed object.

API Level: 3
View Source

ProxyType

The Proxy type.

Declaration
C#
Copy
public ProxyType ProxyType { get; set; }
Property Value
Type Description
ProxyType

Proxy type of the connection.

Exceptions
Type Condition
NotSupportedException

Thrown during set when a feature is not supported.

ArgumentException

Thrown during set when a value is an invalid parameter.

InvalidOperationException

Thrown during set when a profile instance is invalid or when a method fails due to an invalid operation.

ObjectDisposedException

Thrown during set when a operation is performed on a disposed object.

API Level: 3
View Source

Type

The network type.

Declaration
C#
Copy
public ConnectionProfileType Type { get; }
Property Value
Type Description
ConnectionProfileType

Profile type of the network connection.

API Level: 3

Methods

View Source

Dispose()

Disposes the memory allocated to unmanaged resources.

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Finalize()

Destroy the ConnectionProfile object

Declaration
C#
Copy
protected void Finalize()
View Source

GetState(AddressFamily)

Gets the network state.

Declaration
C#
Copy
public ProfileState GetState(AddressFamily family)
Parameters
Type Name Description
AddressFamily family

The address family.

Returns
Type Description
ProfileState

The network state.

Exceptions
Type Condition
NotSupportedException

Thrown when a feature is not supported.

ArgumentException

Thrown when a value is an invalid parameter.

InvalidOperationException

Thrown when a profile instance is invalid or when a method fails due to an invalid operation.

ObjectDisposedException

Thrown when an operation is performed on a disposed object.

API Level: 3
Feature: http://tizen.org/feature/network.ethernethttp://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.wifi
View Source

Refresh()

Refreshes the profile information.

Declaration
C#
Copy
public void Refresh()
Exceptions
Type Condition
NotSupportedException

Thrown when a feature is not supported.

UnauthorizedAccessException

Thrown when a permission is denied.

InvalidOperationException

Thrown when a profile instance is invalid or when a method fails due to an invalid operation.

ObjectDisposedException

Thrown when an operation is performed on a disposed object.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/network.get
Feature: http://tizen.org/feature/network.ethernethttp://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.wifi

Events

View Source

ProfileStateChanged

The event is called when the state of profile is changed.

Declaration
C#
Copy
public event EventHandler<ProfileStateEventArgs> ProfileStateChanged
Event Type
Type Description
EventHandler<ProfileStateEventArgs>
Exceptions
Type Condition
NotSupportedException

Thrown when a feature is not supported.

API Level: 3
Feature: http://tizen.org/feature/network.ethernethttp://tizen.org/feature/network.telephonyhttp://tizen.org/feature/network.tethering.bluetoothhttp://tizen.org/feature/network.wifi

Implements