XBee C# library API reference

Show / Hide Table of Contents

Class PowerLevelExtensions

Inheritance
System.Object
PowerLevelExtensions
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 PowerLevelExtensions

Methods

Get(PowerLevel, Byte)

Gets the PowerLevel entry associated to the given value.

Declaration
public static PowerLevel Get(this PowerLevel source, byte value)
Parameters
Type Name Description
PowerLevel source
System.Byte value

Value of the PowerLevel to retrieve.

Returns
Type Description
PowerLevel

The PowerLevel entry associated to the given value, LEVEL_UNKNOWN if the value could not be found in the list.

GetDescription(PowerLevel)

Gets the power level description.

Declaration
public static string GetDescription(this PowerLevel source)
Parameters
Type Name Description
PowerLevel source
Returns
Type Description
System.String

The power level description.

GetValue(PowerLevel)

Gets the power level value.

Declaration
public static byte GetValue(this PowerLevel source)
Parameters
Type Name Description
PowerLevel source
Returns
Type Description
System.Byte

The power level value.

ToDisplayString(PowerLevel)

Returns the PowerLevel in string format.

Declaration
public static string ToDisplayString(this PowerLevel source)
Parameters
Type Name Description
PowerLevel source
Returns
Type Description
System.String

The PowerLevel in string format.

Product page More documentation Official site About Digi Contact us Support
©2019 Digi International Inc. All rights reserved.
Digi International Inc.