Class IPProtocolExtensions
Inheritance
System.Object
IPProtocolExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public static class IPProtocolExtensions
Methods
Get(IPProtocol, Int32)
Gets the IP protocol for the given ID.
Declaration
public static IPProtocol Get(this IPProtocol source, int id)
Parameters
Type | Name | Description |
---|---|---|
IPProtocol | source | |
System.Int32 | id | ID value to retrieve IPProtocol. |
Returns
Type | Description |
---|---|
IPProtocol | The IP protocol for the given ID., UNKNOWN
if the |
GetID(IPProtocol)
Gets the IP protocol ID.
Declaration
public static int GetID(this IPProtocol source)
Parameters
Type | Name | Description |
---|---|---|
IPProtocol | source |
Returns
Type | Description |
---|---|
System.Int32 | The IP protocol ID. |
GetName(IPProtocol)
Gets the IP protocol name.
Declaration
public static string GetName(this IPProtocol source)
Parameters
Type | Name | Description |
---|---|---|
IPProtocol | source |
Returns
Type | Description |
---|---|
System.String | The IP protocol name. |
ToDisplayString(IPProtocol)
Returns the IPProtocol in string format.
Declaration
public static string ToDisplayString(this IPProtocol source)
Parameters
Type | Name | Description |
---|---|---|
IPProtocol | source |
Returns
Type | Description |
---|---|
System.String | The IPProtocol in string format. |