frmPromptGetUserString Method (String, String, String, Boolean) |
GetUserString prompts the user for a string.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string GetUserString(
string sTitle,
string sPrompt,
string sDefault,
bool bReturnNullIfCancelled
)
Public Shared Function GetUserString (
sTitle As String,
sPrompt As String,
sDefault As String,
bReturnNullIfCancelled As Boolean
) As String
public:
static String^ GetUserString(
String^ sTitle,
String^ sPrompt,
String^ sDefault,
bool bReturnNullIfCancelled
)
Parameters
- sTitle
- Type: SystemString
Title of the dialog - sPrompt
- Type: SystemString
The prompt text in the dialog - sDefault
- Type: SystemString
The default response - bReturnNullIfCancelled
- Type: SystemBoolean
If true, will return null if user hits cancel. Else returns sDefault.
Return Value
Type:
StringThe user's result, or null if user cancelled and bReturnNullIfCancelled set.
See Also