共用方式為


IRandomAccessStream::Size property

Gets or sets the size of the stream.

This property is read/write.

Syntax

HRESULT put_Size(
  [in]          ULONGLONG value
);

HRESULT get_Size(
  [out, retval] ULONGLONG *value
);

Property value

The size of the stream, in bytes.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Robytestream.h

IDL

Robytestream.idl

See also

IRandomAccessStream