Bewerken

Share via


DbProviderFactories.UnregisterFactory(String) Method

Definition

Removes a DbProviderFactory registration for the given provider invariant name.

public:
 static bool UnregisterFactory(System::String ^ providerInvariantName);
public static bool UnregisterFactory (string providerInvariantName);
static member UnregisterFactory : string -> bool
Public Shared Function UnregisterFactory (providerInvariantName As String) As Boolean

Parameters

providerInvariantName
String

The invariant provider name of the registration to remove.

Returns

true if the registration is successfully found and removed; otherwise, false. This method returns false if a registration for providerInvariantName is not found.

Applies to