Partager via


FlagEnumerationEditor.EditValue Method (ITypeDescriptorContext, IServiceProvider, Object)

Edits an enumeration value by using the editor style indicated by the GetEditStyle method.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Overrides Function EditValue ( _
    context As ITypeDescriptorContext, _
    provider As IServiceProvider, _
    value As Object _
) As Object
public override Object EditValue(
    ITypeDescriptorContext context,
    IServiceProvider provider,
    Object value
)
public:
virtual Object^ EditValue(
    ITypeDescriptorContext^ context, 
    IServiceProvider^ provider, 
    Object^ value
) override
abstract EditValue : 
        context:ITypeDescriptorContext * 
        provider:IServiceProvider * 
        value:Object -> Object  
override EditValue : 
        context:ITypeDescriptorContext * 
        provider:IServiceProvider * 
        value:Object -> Object
public override function EditValue(
    context : ITypeDescriptorContext, 
    provider : IServiceProvider, 
    value : Object
) : Object

Parameters

Return Value

Type: System.Object
The new enumeration value. If the value has not changed, this returns the original value.

Exceptions

Exception Condition
ArgumentNullException

context or provider is nulla null reference (Nothing in Visual Basic).

Remarks

Both the value parameter and the return value use the string representation of the enumeration value. The field names and the field delimiter are specified in the constructor.

.NET Framework Security

See Also

Reference

FlagEnumerationEditor Class

EditValue Overload

Microsoft.VisualStudio.Modeling.Design Namespace

FlagEnumerationEditor