Class
ServiceProvider

Persistence service provider.

Definition

Namespace:Telerik.Windows.Persistence.Services

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public static class ServiceProvider

Inheritance: objectServiceProvider

Methods

RegisterPersistenceProvider<T>(Type, IPersistenceProvider)

Registers a persistence provider.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public static void RegisterPersistenceProvider<T>(Type type, IPersistenceProvider provider) where T : IPersistenceProvider

Parameters

type

Type

The type against which the provider is registered.

provider

IPersistenceProvider

The provider instance.

ResolvePersistenceProvider<T>(Type)

Resolves the persistence provider.

Declaration

cs-api-definition
public static T ResolvePersistenceProvider<T>(Type ownerType) where T : IPersistenceProvider

Parameters

ownerType

Type

The registered type against the persistence provider.

Returns

T

UnregisterPersistenceProvider(Type)

Unregisters persistence providers for a specific type.

Declaration

cs-api-definition
public static bool UnregisterPersistenceProvider(Type ownerType)

Parameters

ownerType

Type

The type owner of the persistence providers.

Returns

bool

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

UnregisterPersistenceProvider<T>(Type)

Unregisters the persistence provider.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public static bool UnregisterPersistenceProvider<T>(Type ownerType) where T : IPersistenceProvider

Parameters

ownerType

Type

Type of the owner.

Returns

bool