New to Telerik UI for WPFStart a free 30-day trial

Persistence service provider.

Definition

Namespace:Telerik.Windows.Persistence.Services

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class ServiceProvider

Inheritance: objectServiceProvider

Methods

Registers a persistence provider.

C#
public static void RegisterPersistenceProvider<T>(Type type, IPersistenceProvider provider) where T : IPersistenceProvider
Parameters:typeType

The type against which the provider is registered.

providerIPersistenceProvider

The provider instance.

Resolves the persistence provider.

C#
public static T ResolvePersistenceProvider<T>(Type ownerType) where T : IPersistenceProvider
Parameters:ownerTypeType

The registered type against the persistence provider.

Returns:

T

Unregisters persistence providers for a specific type.

C#
public static bool UnregisterPersistenceProvider(Type ownerType)
Parameters:ownerTypeType

The type owner of the persistence providers.

Returns:

bool

Returns true if the providers associated with the type are unregistered.

Unregisters the persistence provider.

C#
public static bool UnregisterPersistenceProvider<T>(Type ownerType) where T : IPersistenceProvider
Parameters:ownerTypeType

Type of the owner.

Returns:

bool