PersistenceProvider.Create(Object, TimeSpan) Method

Definition

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

C#
public abstract object Create(object instance, TimeSpan timeout);

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

Продукт Версії
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1