共用方式為


OracleBoolean.Explicit 運算子

定義

用於明確的 OracleBoolean 轉換。

多載

Explicit(OracleBoolean to Boolean)

OracleBoolean 轉換成 Boolean

Explicit(OracleNumber to OracleBoolean)

OracleNumber 參數轉換成 OracleBoolean 結構。

Explicit(String to OracleBoolean)

將字串轉換成 OracleBoolean 結構。

Explicit(OracleBoolean to Boolean)

OracleBoolean 轉換成 Boolean

public:
 static explicit operator bool(System::Data::OracleClient::OracleBoolean x);
public static explicit operator bool (System.Data.OracleClient.OracleBoolean x);
static member op_Explicit : System.Data.OracleClient.OracleBoolean -> bool
Public Shared Narrowing Operator CType (x As OracleBoolean) As Boolean

參數

x
OracleBoolean

要進行轉換的 OracleBoolean

傳回

Boolean,設定為 ValueOracleBoolean

例外狀況

適用於

Explicit(OracleNumber to OracleBoolean)

OracleNumber 參數轉換成 OracleBoolean 結構。

public:
 static explicit operator System::Data::OracleClient::OracleBoolean(System::Data::OracleClient::OracleNumber x);
public static explicit operator System.Data.OracleClient.OracleBoolean (System.Data.OracleClient.OracleNumber x);
static member op_Explicit : System.Data.OracleClient.OracleNumber -> System.Data.OracleClient.OracleBoolean
Public Shared Narrowing Operator CType (x As OracleNumber) As OracleBoolean

參數

x
OracleNumber

要轉換成 OracleNumber 結構的 OracleBoolean

傳回

OracleBoolean 結構,其值等於 Value 參數的 OracleNumber 屬性。

備註

如果值 OracleNumber 是 0,則 OracleBoolean 的值是 false,否則的值 OracleBooleantrue

適用於

Explicit(String to OracleBoolean)

將字串轉換成 OracleBoolean 結構。

public:
 static explicit operator System::Data::OracleClient::OracleBoolean(System::String ^ x);
public static explicit operator System.Data.OracleClient.OracleBoolean (string x);
static member op_Explicit : string -> System.Data.OracleClient.OracleBoolean
Public Shared Narrowing Operator CType (x As String) As OracleBoolean

參數

x
String

要轉換成 OracleBoolean 結構的字串。

傳回

新的 OracleBoolean 結構,其值等於 Value 參數的 OracleNumber

適用於