RestResponseProperties Class

A class that helps generating the responseProperties string for a resource or operation.


Constructors

NameDescription
RestResponsePropertiesRestResponseProperties constructor.

RestResponseProperties Constructor

RestResponseProperties constructor, which sets default content type to "text/plain;charset=utf-8" and sets default data type to esriWebResponseDataType.esriWRDTPayload.

1
public RestResponseProperties()

Properties

PropertyProperty valueDescription
RestResponseProperties.ContentTypeStringDefines the value of the Content-Type http header. Default value is "text/plain;charset=utf-8" (valid for JSON)
RestResponseProperties.IsErrorBooleanIndicates if an error happened when processing a request. Some properties may not be written if that is the case.
RestResponseProperties.ResponseDataTypeesriWebResponseDataTypeIndicates if the response is sent embedded to the http handler (esriWRDTPayload, the default), or if a file is written in an output directory and the http handler should pick it up from there (esriWRDTFileToReturn)

Methods

NameDescription
RestResponseProperties.ToString()Generates a comma-separated list of properties to be returned to the http handler.

RestResponseProperties.ToString() Method

Generates a comma-separated list of properties to be returned to the http handler

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close