Support.GetCancel(Button) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
获取一个值,该值指示 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 -> boolPublic Function GetCancel (btn As Button) As Boolean参数
返回
如果 btn 是“取消”按钮,则为 true;否则为 false。
- 属性
注解
此函数相当于检查CancelButton属性的Form。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。