API Reference
Class
OneNoteBinaryPayload
Lazily materialized binary data associated with a OneNote image, file, recording, or ink object.
Inheritance
- Object
- OneNoteBinaryPayload
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- 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) #Returns:
OneNoteBinaryPayloadCreates an independently owned payload by copying a byte array.
Parameters
- bytes System.Byte[]
public static OneNoteBinaryPayload FromStreamFactory(Func<Stream> streamFactory, Nullable<Int64> length = null) #Returns:
OneNoteBinaryPayloadCreates a lazy payload. The factory must return a new readable stream for every call.
Parameters
- streamFactory System.Func{System.IO.Stream}
- length System.Nullable{System.Int64} = null
public Byte[] ToArray(Int64 maxBytes) #Returns:
Byte[]Materializes a defensive copy of the payload with a caller-provided size bound.
Parameters
- maxBytes System.Int64
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Nullable<Int64> Length { get; } #Payload length when known without opening the stream.