 | RestClientBasePostTBody, TResult(String, String, TBody) Method |
Execute a post against the url
Namespace: SanteDB.Core.HttpAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic 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 String
- The resource URL
- contentType String
- The content/type of body
- body 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
TResultThe result from the server
Implements
IRestClientPostTBody, TResult(String, String, TBody)
See Also