Udostępnij za pośrednictwem


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Overrides Function EditValue ( _
    context As ITypeDescriptorContext, _
    provider As IServiceProvider, _
    value As Object _
) As Object
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public override Object EditValue(
    ITypeDescriptorContext context,
    IServiceProvider provider,
    Object value
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
public:
virtual Object^ EditValue(
    ITypeDescriptorContext^ context, 
    IServiceProvider^ provider, 
    Object^ value
) override
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract EditValue : 
        context:ITypeDescriptorContext * 
        provider:IServiceProvider * 
        value:Object -> Object 
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
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