UserPromptResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UserPromptResult(UserPromptOption) |
Initializes a new instance of the UserPromptResult class.
Sets IsUserDismissed to |
UserPromptResult(UserPromptResult) | |
UserPromptResult(Boolean, UserPromptOption) |
Initializes a new instance of the UserPromptResult class. |
UserPromptResult(UserPromptOption)
Initializes a new instance of the UserPromptResult class.
Sets IsUserDismissed to false
.
public UserPromptResult (Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptOption selectedOption);
new Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult : Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptOption -> Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult
Public Sub New (selectedOption As UserPromptOption)
Parameters
- selectedOption
- UserPromptOption
The option selected by the user.
Applies to
UserPromptResult(UserPromptResult)
protected UserPromptResult (Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult original);
Protected Sub New (original As UserPromptResult)
Parameters
- original
- UserPromptResult
Applies to
UserPromptResult(Boolean, UserPromptOption)
Initializes a new instance of the UserPromptResult class.
public UserPromptResult (bool isUserDismissed, Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptOption selectedOption);
new Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult : bool * Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptOption -> Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult
Public Sub New (isUserDismissed As Boolean, selectedOption As UserPromptOption)
Parameters
- isUserDismissed
- Boolean
Whether the user dismissed the prompt without a selection.
- selectedOption
- UserPromptOption
The selected option or None.