Freigeben über


UI2.Confirm(String, XdConfirmButtons) Methode

Definition

Zeigt ein Meldungsfeld mit Schaltflächen für Benutzereingaben an.

public:
 Microsoft::Office::Interop::InfoPath::XdConfirmChoice Confirm(System::String ^ bstrPrompt, Microsoft::Office::Interop::InfoPath::XdConfirmButtons lButtons);
public Microsoft.Office.Interop.InfoPath.XdConfirmChoice Confirm (string bstrPrompt, Microsoft.Office.Interop.InfoPath.XdConfirmButtons lButtons);
abstract member Confirm : string * Microsoft.Office.Interop.InfoPath.XdConfirmButtons -> Microsoft.Office.Interop.InfoPath.XdConfirmChoice
Public Function Confirm (bstrPrompt As String, lButtons As XdConfirmButtons) As XdConfirmChoice

Parameter

bstrPrompt
String

Die anzuzeigende Textmeldung.

lButtons
XdConfirmButtons

Gibt die Anzahl und den Typ der anzuzeigenden Schaltflächen an. Sie können jeden der Werte der XdConfirmButtons Enumeration angeben.

Gibt zurück

Eine XdConfirmChoice -Enumeration.

Beispiele

Im folgenden Beispiel wird die Confirm-Methode des UIObject -Objekts verwendet, um ein Dialogfeld mit den Schaltflächen Ja und Nein anzuzeigen:

thisXDocument.UI.<span class="label">Confirm</span>("Do you wish to continue?", XdConfirmButtons.xdYesNo);

Gilt für: