Share via


CalculatedPropertyValueHandler<TElement, TValue>.SetValue Method

Sets the value of a domain property for an element.

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

Syntax

'Declaration
Public Overrides NotOverridable Sub SetValue ( _
    element As TElement, _
    newValue As TValue _
)
public override sealed void SetValue(
    TElement element,
    TValue newValue
)
public:
virtual void SetValue(
    TElement element, 
    TValue newValue
) override sealed
abstract SetValue : 
        element:'TElement * 
        newValue:'TValue -> unit  
override SetValue : 
        element:'TElement * 
        newValue:'TValue -> unit
public override final function SetValue(
    element : TElement, 
    newValue : TValue
)

Parameters

  • element
    Type: TElement

    The element that has this property.

  • newValue
    Type: TValue

    The value the property is set to.

Remarks

The change in the property value can be logged in case the transaction is rolled back.

.NET Framework Security

See Also

Reference

CalculatedPropertyValueHandler<TElement, TValue> Class

Microsoft.VisualStudio.Modeling Namespace