| RestClientBasePostTBody, TResult Method (String, String, TBody) |
Execute a post against the url
Namespace:
SanteDB.Core.Http
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax public TResult Post<TBody, TResult>(
string url,
string contentType,
TBody body
)
Public Function Post(Of TBody, TResult) (
url As String,
contentType As String,
body As TBody
) As TResult
public:
generic<typename TBody, typename TResult>
virtual TResult Post(
String^ url,
String^ contentType,
TBody body
) sealed
abstract Post :
url : string *
contentType : string *
body : 'TBody -> 'TResult
override Post :
url : string *
contentType : string *
body : 'TBody -> 'TResult
Parameters
- url
- Type: SystemString
The resource URL - contentType
- Type: SystemString
The content/type of body - body
- Type: TBody
The body contents to be submitted to the server
Type Parameters
- TBody
- The type of body
- TResult
- The expected response type from the server
Return Value
Type:
TResultThe result from the server
Implements
IRestClientPostTBody, TResult(String, String, TBody)See Also