Udostępnij za pośrednictwem


ShareOperation.ReportError(String) Method

Definition

Specifies that an error occurred during the sharing operation.

public:
 virtual void ReportError(Platform::String ^ value) = ReportError;
void ReportError(winrt::hstring const& value);
/// [Windows.Foundation.Metadata.Deprecated("ReportError is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void ReportError(winrt::hstring const& value);
public void ReportError(string value);
[Windows.Foundation.Metadata.Deprecated("ReportError 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 ReportError(string value);
function reportError(value)
Public Sub ReportError (value As String)

Parameters

value
String

Platform::String

winrt::hstring

Specifies the error message. The system displays this message to the user.

Attributes

Remarks

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