IndexableContent IndexableContent IndexableContent IndexableContent Class

Represents app content and properties that can be added to the ContentIndexer.

Syntax

Declaration

public sealed class IndexableContentpublic sealed class IndexableContentPublic NotInheritable Class IndexableContent

Constructors summary

Initializes a new instance of the IndexableContent class.

Properties summary

Gets or sets the identifier for the content properties in the IndexableContent object. Changes to the actual representation of the item in the index can be made using the ContentIndexer class.

Gets the content properties.

Gets or sets a Stream that provides full-text content. Changes to the actual representation of the item in the index can be made using the ContentIndexer class.

Specifies the type of content in the Stream.

Constructors

  • IndexableContent()
    IndexableContent()
    IndexableContent()
    IndexableContent()

    Initializes a new instance of the IndexableContent class.

    public IndexableContent()public IndexableContent()Public Function IndexableContent() As

Properties

  • Id
    Id
    Id
    Id

    Gets or sets the identifier for the content properties in the IndexableContent object. Changes to the actual representation of the item in the index can be made using the ContentIndexer class.

    public string Id { get; set; }public string Id { get; set; }Public ReadWrite Property Id As string

    Property Value

    • string
      string
      string
      string

      The identifier of the content item.

  • Properties
    Properties
    Properties
    Properties

    Gets the content properties.

    public IMap<string, object> Properties { get; }public IMap<string, object> Properties { get; }Public ReadOnly Property Properties As IMap<string, object>

    Property Value

    • The collection of properties, represented as a IMap<K, V> of key-value pairs.

    Remarks

    While access to this type is read-only, it returns a read/write map.

    Add a property to index by calling the IMap<K, V> method with a standard Windows property name, like System.Author, and a PropertyValue.

    When you're done adding properties to the current IndexableContent, call the AddAsync(Windows.Storage.Search.IIndexableContent) method to add the properties to the system index.

  • Stream
    Stream
    Stream
    Stream

    Gets or sets a Stream that provides full-text content. Changes to the actual representation of the item in the index can be made using the ContentIndexer class.

    public IRandomAccessStream Stream { get; set; }public IRandomAccessStream Stream { get; set; }Public ReadWrite Property Stream As IRandomAccessStream

    Property Value

    Remarks

    Assign the Stream property when the content properties are backed by a file or another kind of stream. This is particularly useful for providing full text content.

  • StreamContentType
    StreamContentType
    StreamContentType
    StreamContentType

    Specifies the type of content in the Stream.

    public string StreamContentType { get; set; }public string StreamContentType { get; set; }Public ReadWrite Property StreamContentType As string

    Property Value

    • string
      string
      string
      string

      The content type, like ContentType.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ActivatableAttribute

Details

Assembly

Windows.Storage.Search.dll