Click or drag to resize

ConfigRecordChange Method (IContext, ConfigKey, Boolean)

Record a new value for the specified configuration item.
It will not apply the change in the configuration, nor save in the database unless you explicitly call the ApplyRecordedChanges(IContext) method.

Namespace:  AskiaPortalCmn.Configuration
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public IReturnValue RecordChange(
	IContext context,
	ConfigKey key,
	bool value
)

Parameters

context
Type: AskiaPortalCmnIContext
Context of execution
key
Type: AskiaPortalCmn.ConfigurationConfigKey
Indicates the configuration item to modify
value
Type: SystemBoolean
Indicates the value to set

Return Value

Type: IReturnValue
It return fail value, if the user in the context doesn't have enough permission to do this action

Implements

IConfigRecordChange(IContext, ConfigKey, Boolean)
Remarks
If the configuration item doesn't exists, this method will fail.
See Also