Class ConnectionProfile
Definition
- Namespace:
- Tizen.Network.Connection
- Assembly:
- Tizen.Network.Connection.dll
This is the ConnectionProfile class. It provides event and properties of the connection profile.
C#Copypublic class ConnectionProfile : IDisposable
- Inheritance
-
objectConnectionProfile
- Derived
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic string Id { get; }
Property Value
Type | Description |
---|---|
string | Unique ID of the profile. |
Declaration
C#Copypublic string InterfaceName { get; }
Property Value
Type | Description |
---|---|
string | Network interface name, for example, eth0 and pdp0. |
Declaration
C#Copypublic IAddressInformation IPv4Settings { get; }
Property Value
Type | Description |
---|---|
IAddressInformation | Instance of IAddressInformation with IPV4 address. |
Declaration
C#Copypublic IAddressInformation IPv6Settings { get; }
Property Value
Type | Description |
---|---|
IAddressInformation | Instance of IAddressInformation with IPV6 address. |
Declaration
C#Copypublic string Name { get; }
Property Value
Type | Description |
---|---|
string | User friendly name of the profile. |
Declaration
C#Copypublic string ProxyAddress { get; set; }
Property Value
Type | Description |
---|---|
string | Proxy address of the connection. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown during set when a feature is not supported. |
System.ArgumentException | Thrown during set when a value is an invalid parameter. |
System.ArgumentNullException | Thrown during set when a value is null. |
System.InvalidOperationException | Thrown during set when a profile instance is invalid or when a method fails due to an invalid operation. |
System.ObjectDisposedException | Thrown when an operation is performed on a disposed object. |
Declaration
C#Copypublic ProxyType ProxyType { get; set; }
Property Value
Type | Description |
---|---|
ProxyType | Proxy type of the connection. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown during set when a feature is not supported. |
System.ArgumentException | Thrown during set when a value is an invalid parameter. |
System.InvalidOperationException | Thrown during set when a profile instance is invalid or when a method fails due to an invalid operation. |
System.ObjectDisposedException | Thrown during set when a operation is performed on a disposed object. |
Declaration
C#Copypublic ConnectionProfileType Type { get; }
Property Value
Type | Description |
---|---|
ConnectionProfileType | Profile type of the network connection. |
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~ConnectionProfile()
Declaration
C#Copypublic ProfileState GetState(AddressFamily family)
Parameters
Type | Name | Description |
---|---|---|
AddressFamily | family | The address family. |
Returns
Type | Description |
---|---|
ProfileState | The network state. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when a feature is not supported. |
System.ArgumentException | Thrown when a value is an invalid parameter. |
System.InvalidOperationException | Thrown when a profile instance is invalid or when a method fails due to an invalid operation. |
System.ObjectDisposedException | Thrown when an operation is performed on a disposed object. |
Declaration
C#Copypublic void Refresh()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when a feature is not supported. |
System.UnauthorizedAccessException | Thrown when a permission is denied. |
System.InvalidOperationException | Thrown when a profile instance is invalid or when a method fails due to an invalid operation. |
System.ObjectDisposedException | Thrown when an operation is performed on a disposed object. |
Events
Declaration
C#Copypublic event EventHandler<ProfileStateEventArgs> ProfileStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ProfileStateEventArgs> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when a feature is not supported. |