Share via


StreamingTextActionEntityWriter Class

Definition

Provides APIs for streaming the text content of a StreamingTextActionEntity.

public ref class StreamingTextActionEntityWriter sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.Actions.ActionsContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class StreamingTextActionEntityWriter final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.Actions.ActionsContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StreamingTextActionEntityWriter : System.IDisposable
Public NotInheritable Class StreamingTextActionEntityWriter
Implements IDisposable
Inheritance
Object Platform::Object IInspectable StreamingTextActionEntityWriter
Attributes
Implements

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.26100.0)
API contract
Windows.AI.Actions.ActionsContract (introduced in v4.0)

Remarks

Create an instance of this class by calling ActionEntityFactory.CreateStreamingTextActionEntityWriter.

Properties

ReaderEntity

Gets an instance of the StreamingTextActionEntity class that is used for reading the streaming text content written by calls to SetText

TextFormat

Gets the text format of the StreamingTextActionEntityWriter.

Methods

Close()

Closes and releases any resources used by this StreamingTextActionEntityWriter.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SetText(String)

Sets the current text of the associated StreamingTextActionEntity.

Applies to