Share via


ProviderConfigurationSettings.Validate(String) Method

Definition

When overridden in a derived class, validates the provider configuration settings.

public:
 abstract bool Validate([Runtime::InteropServices::Out] System::String ^ % message);
public abstract bool Validate (out string message);
abstract member Validate :  -> bool
Public MustOverride Function Validate (ByRef message As String) As Boolean

Parameters

message
String

The validation message to display.

Returns

true if the validation was successful; otherwise, false.

Remarks

The derived class implements this method to return a Boolean value and a message that indicates the validation of the settings. Implementers should ensure that the overridden method returns a value and message to indicate whether the validation was successful and a message that indicates what validation checks failed.

For an example of this method, see the example for the ProviderConfigurationSettings class.

Applies to