Skip to main content
Get the size in bytes needed to store the result of a GetTreatmentAssignment call.

Syntax

Parameters

async   XAsyncBlock*
Inout
XAsyncBlock for the async operation. bufferSize   size_t*
output
The buffer size in bytes required for the result.

Return value

Type: HRESULT Result code for this API operation. If the service call is unsuccessful, the result will be E_PF_EXPERIMENTATION_CLIENT_TIMEOUT, E_PF_EXPERIMENTATION_TREATMENT_ASSIGNMENT_DISABLED, E_PF_EXPERIMENTATION_TREATMENT_ASSIGNMENT_FAILED, E_PF_FEATURE_NOT_CONFIGURED_FOR_TITLE, E_PF_INVALID_ENTITY_TYPE or any of the global PlayFab Service errors. See doc page “Handling PlayFab Errors” for more details on error handling.

Requirements

Header: PFExperimentation.h

See also

PFExperimentation members
Last modified on August 1, 2026