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
context
Type: System.ComponentModel.ITypeDescriptorContextAdditional context information.
provider
Type: System.IServiceProviderA service provider that this editor can use to obtain services.
value
Type: System.ObjectThe value to edit.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.