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
'Déclaration
<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
- context
Type: System.ComponentModel.ITypeDescriptorContext
Additional context information.
- provider
Type: System.IServiceProvider
A service provider that this editor can use to obtain services.
- value
Type: System.Object
The 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.