ExpressionsCollectionEditor.EditValue Method (ITypeDescriptorContext, IServiceProvider, Object)

Note: This method is new in the .NET Framework version 2.0.

Edits the value of the specified object with the specified service provider and context.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
virtual Object^ EditValue (
	ITypeDescriptorContext^ context, 
	IServiceProvider^ provider, 
	Object^ value
) override
public Object EditValue (
	ITypeDescriptorContext context, 
	IServiceProvider provider, 
	Object value
)
public override function EditValue (
	context : ITypeDescriptorContext, 
	provider : IServiceProvider, 
	value : Object
) : Object

Parameters

context

An ITypeDescriptorContext object that can be used to gain additional context information such as the associated control.

provider

A service provider object through which editing services can be obtained.

value

An instance of the object being edited.

Return Value

An ExpressionBindingCollection object containing the selected expressions; otherwise, if no expressions are selected, the value object.

The EditValue method launches the user interface for editing the value object. The designer host calls the EditValue method when you attempt to edit the value of a property that this editor is associated with. The input service provider is used to obtain any editing services that are required within the EditValue.

A designer host, such as Visual Studio 2005, uses the ExpressionBuilder and ExpressionEditor class implementations with the ExpressionsCollectionEditor and ExpressionsCollectionConverter classes to set the expression bindings for control properties at design time, and the ControlPersister class to persist the expressions for run time. Expression strings reference a localizable resource, an application setting, a connection string, or a custom expression type. The expression string is bound to the control property at design time, and then used at run time to determine the value for the property.

If users cancel the user interface without modifying the expression binding collection, the EditValue method returns the input value parameter.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: