IIndexableContent IIndexableContent IIndexableContent IIndexableContent Interface

Definition

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

public : interface IIndexableContent
public interface IIndexableContent
Public Interface IIndexableContent
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Id Id Id Id

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

public : Platform::String Id { get; set; }
public string Id { get; set; }
Public ReadWrite Property Id As string
var string = iIndexableContent.id;
iIndexableContent.id = string;
Value
Platform::String string string string

The identifier of the content item.

Properties Properties Properties Properties

Gets the content properties.

public : IMap<Platform::String, Platform::Object> Properties { get; }
public IDictionary<string, object> Properties { get; }
Public ReadOnly Property Properties As IDictionary<string, object>
var iDictionary = iIndexableContent.properties;
Value
IMap<Platform::String, Platform::Object> IDictionary<string, object> IDictionary<string, object> IDictionary<string, object>

The collection of properties, represented as a Map of key-value pairs.

Remarks

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

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
var iRandomAccessStream = iIndexableContent.stream;
iIndexableContent.stream = iRandomAccessStream;
Value
IRandomAccessStream IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream used to provide the full-text content for the item.

StreamContentType StreamContentType StreamContentType StreamContentType

Specifies the type of content in the Stream.

public : Platform::String StreamContentType { get; set; }
public string StreamContentType { get; set; }
Public ReadWrite Property StreamContentType As string
var string = iIndexableContent.streamContentType;
iIndexableContent.streamContentType = string;
Value
Platform::String string string string

The content type, like StorageFile.ContentType.