StorageProviderSearchResult Class
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.
The class that the storage provider will use to return an individual search result.
public ref class StorageProviderSearchResult sealed : IStorageProviderQueryResult
/// [Windows.Foundation.Metadata.Activatable(458752, "Windows.Storage.Provider.CloudFilesContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Storage.Provider.CloudFilesContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StorageProviderSearchResult final : IStorageProviderQueryResult
[Windows.Foundation.Metadata.Activatable(458752, "Windows.Storage.Provider.CloudFilesContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Storage.Provider.CloudFilesContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StorageProviderSearchResult : IStorageProviderQueryResult
function StorageProviderSearchResult()
Public NotInheritable Class StorageProviderSearchResult
Implements IStorageProviderQueryResult
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 11 Insider Preview (introduced in 10.0.23504.0)
|
API contract |
Windows.Storage.Provider.CloudFilesContract (introduced in v7.0)
|
Remarks
This object will implement marshal by value to optimize RPC calls.
Includes the local FilePath of the search result and a RemoteFileId. Any properties requested in the query options are also included.
Constructors
StorageProviderSearchResult() |
Creates a new instance of the StorageProviderSearchResult class. |
Properties
FilePath |
Gets or sets the local file path of the search result. |
Kind |
Gets or sets the kind of the search result. |
MatchedPropertyName |
Gets or sets an optional name identifying the most impactful property contributing to MatchScore for this result. |
MatchKind |
Gets or sets the kind of match for the search result. This indicates why the entry is included, e.g. a Lexical or Semantic match. |
MatchScore |
Gets or sets the match score for the search result. This indicates how well the search result matches the search query. |
RemoteFileId |
Gets or sets the remote file ID of the search result. |
RequestedProperties |
Gets the properties that were requested in the query options. |
ResultId |
Gets or sets the result ID of the search result. |