ContextItemManager.SetValue Method
When overridden in a derived class, sets a context item to the specified value.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public MustOverride Sub SetValue ( _
value As ContextItem _
)
public abstract void SetValue(
ContextItem value
)
public:
virtual void SetValue(
ContextItem^ value
) abstract
abstract SetValue :
value:ContextItem -> unit
public abstract function SetValue(
value : ContextItem
)
Parameters
- value
Type: Microsoft.Windows.Design.ContextItem
The value to set into the context item manager. Cannot be nulla null reference (Nothing in Visual Basic).
Remarks
Do not accept nulla null reference (Nothing in Visual Basic) as a parameter in your implementation. If you want to set a context item to an empty value, create an instance of the item by using a default 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.
See Also
Reference
Microsoft.Windows.Design Namespace
SubscribeContextCallback<TContextItemType>