Click or drag to resize

ResourceHandlerBaseTFhirResource, TModelCreate(Resource, TransactionMode) Method

Create the specified resource in the repository layer

Namespace: SanteDB.Messaging.FHIR.Handlers
Assembly: SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 3.0.2081-alpha+4e2291b954f20d29cba15591683155ca851b26eb
Syntax
public virtual Resource Create(
	Resource resource,
	TransactionMode mode
)

Parameters

resource  Resource
The resource which should be created
mode  TransactionMode
The mode in which the transaction should be committed

Return Value

Resource
The created resource

Implements

IFhirResourceHandlerCreate(Resource, TransactionMode)
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen the resource is null
ArgumentExceptionWhen the resource is not the correct type
See Also