Class
OneNoteBinaryPayload
OfficeIMO.OneNote
Lazily materialized binary data associated with a OneNote image, file, recording, or ink object.
Inheritance
- object
- OneNoteBinaryPayload
Usage
Explore 12 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 12
- Property OneNoteBinaryElement.Payload
- Method OneNoteBinaryPayload.FromBytes
- Method OneNoteBinaryPayload.FromStreamFactory
- Property OneNoteEmbeddedFile.Payload
- Property OneNoteFileDataStoreObject.Payload
- Property OneNoteFileNode.EncodedData
- Property OneNoteImage.Payload
- Property OneNoteInk.Payload
- Property OneNoteMath.RawPayload
- Property OneNoteMedia.Payload
- Property OneNotePropertyValue.Data
- Property OneNoteRevisionStoreObject.RawPropertyData
Methods
public static OneNoteBinaryPayload FromBytes(byte[] bytes) #Creates an independently owned payload by copying a byte array.
Parameters
- bytes byte[]
Returns
OneNoteBinaryPayloadpublic static OneNoteBinaryPayload FromStreamFactory(Func<Stream> streamFactory, long? length = null) #Creates a lazy payload. The factory must return a new readable stream for every call.
Parameters
- streamFactory System.Func<System.IO.Stream>
- length long? = null
Returns
OneNoteBinaryPayloadpublic byte[] ToArray(long maxBytes) #Materializes a defensive copy of the payload with a caller-provided size bound.
Parameters
- maxBytes long
Returns
byte[]Inherited Methods
Properties
public long? Length { get; } #Payload length when known without opening the stream.