Support.GetCancel(Button) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
會得到一個值,表示 a Button 是否是表單上的取消按鈕。
public:
static bool GetCancel(System::Windows::Forms::Button ^ btn);
public static bool GetCancel(System.Windows.Forms.Button btn);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static bool GetCancel(System.Windows.Forms.Button btn);
static member GetCancel : System.Windows.Forms.Button -> bool
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetCancel : System.Windows.Forms.Button -> bool
Public Function GetCancel (btn As Button) As Boolean
參數
傳回
true 如果 btn 是取消按鈕;否則 false。
- 屬性
備註
此函數等同於檢查 CancelButton 的 Form性質。
備註
命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 2008 的工具使用。 在大多數情況下,這些函式和物件會重複你在 .NET Framework 其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用。