ערוך

שתף באמצעות


LockingPersistenceProvider.Create Method

Definition

Creates instance state information in the persistence store.

Overloads

Create(Object, TimeSpan)

Creates instance state information in the persistence store using parameters passed into the method. This method does not unlock the instance in the persistence store after saving the instance state.

Create(Object, TimeSpan, Boolean)

This method creates instance state information in the persistence store using parameters passed into the method. The method unlocks the instance in the instance store if the value of the unlockInstance parameter is true.

Create(Object, TimeSpan)

Creates instance state information in the persistence store using parameters passed into the method. This method does not unlock the instance in the persistence store after saving the instance state.

public:
 override System::Object ^ Create(System::Object ^ instance, TimeSpan timeout);
public override object Create (object instance, TimeSpan timeout);
override this.Create : obj * TimeSpan -> obj
Public Overrides Function Create (instance As Object, timeout As TimeSpan) As Object

Parameters

instance
Object

The instance object whose state information must be saved into the persistence store.

timeout
TimeSpan

The interval in which the operation must complete before timing out.

Returns

The state information.

Applies to

Create(Object, TimeSpan, Boolean)

This method creates instance state information in the persistence store using parameters passed into the method. The method unlocks the instance in the instance store if the value of the unlockInstance parameter is true.

public:
 abstract System::Object ^ Create(System::Object ^ instance, TimeSpan timeout, bool unlockInstance);
public abstract object Create (object instance, TimeSpan timeout, bool unlockInstance);
override this.Create : obj * TimeSpan * bool -> obj
Public MustOverride Function Create (instance As Object, timeout As TimeSpan, unlockInstance As Boolean) As Object

Parameters

instance
Object

The instance object whose state information is saved into the persistence store.

timeout
TimeSpan

The interval within which the operation must complete before timing out.

unlockInstance
Boolean

true if the instance must be unlocked in the persistence store; otherwise false.

Returns

The state information.

Applies to