InternalCreate method
Create the response object.
The parent folder id.
The message disposition.
Implementation
Future<void> InternalCreate(
FolderId? parentFolderId,
MessageDisposition? messageDisposition,
) async {
(PropertyBag[ResponseObjectSchema.ReferenceItemId] as ItemId).Assign(
_referenceItem.Id!,
);
// ExchangeService.InternalCreateResponseObject requires a non-null
// MessageDisposition; this response object is created without one (the
// C# API passes null), so the request is built here.
CreateResponseObjectRequest request = CreateResponseObjectRequest(
Service,
ServiceErrorHandling.ThrowOnError,
);
request.ParentFolderId = parentFolderId;
request.Items = [this];
request.MessageDisposition = messageDisposition;
await request.Execute();
}