Rediger

Del via


PersistenceProvider.Create(Object, TimeSpan) Method

Definition

When implemented in a derived class, creates a service state record in the persistence store.

public:
 abstract System::Object ^ Create(System::Object ^ instance, TimeSpan timeout);
public abstract object Create (object instance, TimeSpan timeout);
abstract member Create : obj * TimeSpan -> obj
Public MustOverride Function Create (instance As Object, timeout As TimeSpan) As Object

Parameters

instance
Object

The actual instance state.

timeout
TimeSpan

The time period after which the persistence provider aborts this attempt.

Returns

The instance token corresponding to the state just saved. This can be passed to LoadIfChanged(TimeSpan, Object, Object) to determine whether the state in the persistence store differs from the state when Create was called.

Applies to