ExceptionMessageBox.Buttons 属性

定义

获取或设置要在消息框中显示的按钮。

public:
 property Microsoft::SqlServer::MessageBox::ExceptionMessageBoxButtons Buttons { Microsoft::SqlServer::MessageBox::ExceptionMessageBoxButtons get(); void set(Microsoft::SqlServer::MessageBox::ExceptionMessageBoxButtons value); };
public Microsoft.SqlServer.MessageBox.ExceptionMessageBoxButtons Buttons { get; set; }
member this.Buttons : Microsoft.SqlServer.MessageBox.ExceptionMessageBoxButtons with get, set
Public Property Buttons As ExceptionMessageBoxButtons

属性值

一个 ExceptionMessageBoxButtons 值。

注解

默认情况下,仅 OK 显示。

使用Custom时,必须在调用Show之前调用SetButtonText以设置按钮文本。

适用于