DataWriterStoreOperation DataWriterStoreOperation DataWriterStoreOperation DataWriterStoreOperation Class

Commits data in a buffer to a backing store.

Syntax

Declaration

public sealed class DataWriterStoreOperationpublic sealed class DataWriterStoreOperationPublic NotInheritable Class DataWriterStoreOperation

Properties summary

Gets or sets the handler to call when the data store operation is complete.

Gets the error code for the data store operation if it fails.

Gets a unique identifier that represents the data store operation.

Gets the current status of the data store operation.

Methods summary

Requests the cancellation of the data store operation.

Requests that work associated with the data store operation should stop.

Returns the result of the data store operation.

Properties

  • Completed
    Completed
    Completed
    Completed

    Gets or sets the handler to call when the data store operation is complete.

    public AsyncOperationCompletedHandler<uint> Completed { get; set; }public AsyncOperationCompletedHandler<uint> Completed { get; set; }Public ReadWrite Property Completed As AsyncOperationCompletedHandler<uint>

    Property Value

    • The handler to call when the operation is complete.

  • ErrorCode
    ErrorCode
    ErrorCode
    ErrorCode

    Gets the error code for the data store operation if it fails.

    public HResult ErrorCode { get; }public HResult ErrorCode { get; }Public ReadOnly Property ErrorCode As HResult

    Property Value

  • Id
    Id
    Id
    Id

    Gets a unique identifier that represents the data store operation.

    public uint Id { get; }public uint Id { get; }Public ReadOnly Property Id As uint

    Property Value

    • uint
      uint
      uint
      uint

      The identifier.

  • Status
    Status
    Status
    Status

    Gets the current status of the data store operation.

    public AsyncStatus Status { get; }public AsyncStatus Status { get; }Public ReadOnly Property Status As AsyncStatus

    Property Value

Methods

  • Cancel()
    Cancel()
    Cancel()
    Cancel()

    Requests the cancellation of the data store operation.

    public void Cancel()public void Cancel()Public Function Cancel() As void
  • Close()
    Close()
    Close()
    Close()

    Requests that work associated with the data store operation should stop.

    public void Close()public void Close()Public Function Close() As void
  • GetResults()
    GetResults()
    GetResults()
    GetResults()

    Returns the result of the data store operation.

    public uint GetResults()public uint GetResults()Public Function GetResults() As uint

    Returns

    • uint
      uint
      uint
      uint

      The result of the operation.

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

Details

Assembly

Windows.Storage.Streams.dll