共用方式為


MsgBoxResult 列舉型別

指示在 MsgBox 函式所傳回訊息方塊上所按的按鈕。

命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)

語法

'宣告
Public Enumeration MsgBoxResult
'用途
Dim instance As MsgBoxResult
public enum MsgBoxResult
public enum class MsgBoxResult
public enum MsgBoxResult
public enum MsgBoxResult

成員

  成員名稱 說明
Supported by the .NET Compact Framework Abort 已按下 [中止] 按鈕。這個成員相當於 Visual Basic 常數 vbAbort。 
Supported by the .NET Compact Framework Cancel 已按下 [取消] 按鈕。這個成員相當於 Visual Basic 常數 vbCancel。 
Supported by the .NET Compact Framework Ignore 已按下 [忽略] 按鈕。這個成員相當於 Visual Basic 常數 vbIgnore。 
Supported by the .NET Compact Framework No 已按下 [否] 按鈕。這個成員相當於 Visual Basic 常數 vbNo。 
Supported by the .NET Compact Framework Ok  
Supported by the .NET Compact Framework OK 已按下 [確定] 按鈕。這個成員相當於 Visual Basic 常數 vbOK。 
Supported by the .NET Compact Framework Retry 已按下 [重試] 按鈕。這個成員相當於 Visual Basic 常數 vbRetry。 
Supported by the .NET Compact Framework Yes 已按下 [是] 按鈕。這個成員相當於 Visual Basic 常數 vbYes。 

備註

如需詳細資訊,請參閱 Visual Basic 的主題 MsgBoxResult 列舉型別

當您呼叫 MsgBox 函數時,您可以在程式碼中使用 MsgBoxResult 列舉型別來取代實際值。

MsgBox 函式傳回 MsgBoxResult 列舉值。

平台

Windows 98、 Windows 2000 SP4、 Windows CE、 Windows Millennium Edition、 Windows Mobile for Pocket PC、 Windows Mobile for Smartphone、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition

.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。

版本資訊

.NET Framework

支援版本:2.0、1.1、1.0

.NET Compact Framework

支援版本:2.0、1.0

請參閱

參考

Microsoft.VisualBasic 命名空間

其他資源

MsgBoxResult 列舉型別
內建常數和列舉型別
MsgBoxStyle 列舉型別
MsgBox 函式 (Visual Basic)
何時使用列舉型別
HOW TO:參考列舉型別成員