Active Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the current state of a particular tristate port — that is, active or inactive.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Property Active As Boolean
public bool Active { get; set; }
public:
property bool Active {
    bool get ();
    void set (bool value);
}
member Active : bool with get, set
function get Active () : boolean
function set Active (value : boolean)

Property Value

Type: System. . :: . .Boolean
true if the tristate port is currently an output port; otherwise, false.

Remarks

A pin is considered "active" when it is an output pin. It is an input pin when it is in the "inactive" state. Your application can use the TristatePort class to control and monitor whether a particular GPIO pin is currently an input pin or an output pin.

.NET Framework Security

See Also

Reference

TristatePort Class

Microsoft.SPOT.Hardware Namespace