XmlFileEditor.EditValue(ITypeDescriptorContext, IServiceProvider, Object) 方法

定义

使用指定的服务提供程序和上下文编辑指定对象的值。Edits the value of the specified object using the specified service provider and context.

public:
 override System::Object ^ EditValue(System::ComponentModel::ITypeDescriptorContext ^ context, IServiceProvider ^ provider, System::Object ^ value);
public override object EditValue (System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value);
override this.EditValue : System.ComponentModel.ITypeDescriptorContext * IServiceProvider * obj -> obj
Public Overrides Function EditValue (context As ITypeDescriptorContext, provider As IServiceProvider, value As Object) As Object

参数

context
ITypeDescriptorContext

可用于获取附加上下文信息的 ITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.

provider
IServiceProvider

可通过其获取编辑服务的服务提供程序对象。A service provider object through which editing services may be obtained.

value
Object

正在编辑的值的实例。An instance of the value being edited.

返回

Object

对象的新值。The new value of the object. 如果未更改对象的值,则此方法应返回所传递的同一对象。If the value of the object has not changed, this method should return the same object it was passed.

注解

提供服务提供程序以获取任何所需要的编辑服务。A service provider is provided so that any required editing services can be obtained.

适用于