> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAccountManagementSetDisplayNameAsync

> Update the display name of the entity

Update the display name of the entity

## Syntax

```cpp theme={null}
HRESULT PFAccountManagementSetDisplayNameAsync(  
    PFEntityHandle entityHandle,  
    const PFAccountManagementSetDisplayNameRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFAccountManagementSetDisplayNameRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementsetdisplaynamerequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Given an entity profile, will update its display name to the one passed in if the profile's version is equal to the specified value See also ProfileGetProfileAsync. When the asynchronous task is complete, call [PFAccountManagementSetDisplayNameGetResultSize](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementsetdisplaynamegetresultsize) and [PFAccountManagementSetDisplayNameGetResult](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementsetdisplaynamegetresult) to get the result.

## Requirements

**Header:** PFAccountManagement.h

## See also

[PFAccountManagement members](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)
