Share via


ShareOperation.DismissUI Method

Definition

Closes the share pane.

public:
 virtual void DismissUI() = DismissUI;
void DismissUI();
/// [Windows.Foundation.Metadata.Deprecated("DismissUI is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void DismissUI();
public void DismissUI();
[Windows.Foundation.Metadata.Deprecated("DismissUI is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public void DismissUI();
function dismissUI()
Public Sub DismissUI ()
Attributes

Remarks

Call the DismissUI method to dismiss the share pane programmatically. Calling DismissUI is similar to the user dismissing the share pane by tapping away from it. If the share operation takes a long time, the app continues to run in the background. If the operation isn't long-running, it has 10 seconds to run before being terminated.

This API was marked as deprecated in SDK versions 1511 and 1607. However, this API is no longer deprecated as of 1703. You can suppress the deprecation warning in Visual Studio by following instructions in the How to: Suppress Compiler Warnings topic.

Applies to