Delen via


IStorageProviderSearchHandler.ReportUsage Method

Definition

This method is called by the UI to report usage of search result when the file is launched.

public:
 void ReportUsage(StorageProviderResultUsageKind resultUsageKind, Platform::String ^ remoteFileId, Platform::String ^ resultId, TimeSpan latency);
void ReportUsage(StorageProviderResultUsageKind const& resultUsageKind, winrt::hstring const& remoteFileId, winrt::hstring const& resultId, TimeSpan const& latency);
public void ReportUsage(StorageProviderResultUsageKind resultUsageKind, string remoteFileId, string resultId, System.TimeSpan latency);
function reportUsage(resultUsageKind, remoteFileId, resultId, latency)
Public Sub ReportUsage (resultUsageKind As StorageProviderResultUsageKind, remoteFileId As String, resultId As String, latency As TimeSpan)

Parameters

resultUsageKind
StorageProviderResultUsageKind

The kind of usage.

remoteFileId
String

Platform::String

winrt::hstring

The remote ID of the file or folder.

resultId
String

Platform::String

winrt::hstring

The ID of the search result.

latency
TimeSpan TimeSpan

The time taken to access the file or folder.

Remarks

This is a blocking call and should not be called on a UI thread.

Applies to