Boolean.IConvertible.GetTypeCode 方法

定義

傳回這個執行個體的 TypeCodeReturns the TypeCode for this instance.

 virtual TypeCode System.IConvertible.GetTypeCode() = IConvertible::GetTypeCode;
TypeCode IConvertible.GetTypeCode ();
abstract member System.IConvertible.GetTypeCode : unit -> TypeCode
override this.System.IConvertible.GetTypeCode : unit -> TypeCode
Function GetTypeCode () As TypeCode Implements IConvertible.GetTypeCode

傳回

TypeCode

列舉常數,該常數是實作這個介面的類型或實值型別的 TypeCodeThe enumerated constant that is the TypeCode of the class or value type that implements this interface.

實作

備註

這個成員是明確的介面成員實作。This member is an explicit interface member implementation. 只有在 Boolean 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the Boolean instance is cast to an IConvertible interface.

適用於