共用方式為


PinValue.Explicit 運算子

定義

多載

Explicit(PinValue to Boolean)

轉換成位元組。 true在 上傳回 。 HighfalseLow

Explicit(PinValue to Byte)

轉換成位元組。 在 上 High 傳回 1,0 于 Low

Explicit(PinValue to Int32)

轉換成 int。在 上 High 傳回 1,0 于 Low

Explicit(PinValue to Boolean)

轉換成位元組。 true在 上傳回 。 HighfalseLow

public static explicit operator bool (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> bool
Public Shared Narrowing Operator CType (value As PinValue) As Boolean

參數

value
PinValue

要轉換的 PinValue

傳回

適用於

Explicit(PinValue to Byte)

轉換成位元組。 在 上 High 傳回 1,0 于 Low

public static explicit operator byte (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> byte
Public Shared Narrowing Operator CType (value As PinValue) As Byte

參數

value
PinValue

要轉換的 PinValue

傳回

適用於

Explicit(PinValue to Int32)

轉換成 int。在 上 High 傳回 1,0 于 Low

public static explicit operator int (System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> int
Public Shared Narrowing Operator CType (value As PinValue) As Integer

參數

value
PinValue

要轉換的 PinValue

傳回

適用於