AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageApiRequest<(Of <(<'TReturnResult>)>)>..::..Post<(Of <(<'TRequestParameter>)>)> Method (String, TRequestParameter)

Posts the supplied request object to the URL and deserialises the response.

Namespace:  AdvantageCSP.API
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public static AdvantageApiRequest<(Of <(<'TReturnResult>)>)>..::..AdvantageApiRequestResult Post<TRequestParameter>(
	string url,
	TRequestParameter requestObject
)

Type Parameters

TRequestParameter
The request-object type to serialise as the request body.

Parameters

url
Type: String
The target URL.
requestObject
Type: TRequestParameter
The request object to serialise; may be null for empty bodies.

Return Value

The AdvantageApiRequest<(Of <(<'TReturnResult>)>)>..::..AdvantageApiRequestResult describing the outcome.