PostSharp5.0/API Reference/Post­Sharp.​Aspects Namespace/Location­Binding­Extensions Class/Location­Binding­Extensions Methods/Location­Binding­Extensions.​Set­Value Method/Location­Binding­Extensions.​Set­Value Method (ILocation­Binding, Object, Arguments, Object)

LocationBindingExtensions.SetValue Method (ILocationBinding, Object, Arguments, Object)

Sets the value of an indexer (property with arguments).

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static void SetValue(
	this ILocationBinding locationBinding,
	Object instance,
	Arguments index,
	Object value
)

Parameters

locationBinding
Type: PostSharp.Aspects.ILocationBinding
The binding for the indexer.
instance
Type: System.Object
The instance for which the indexer is set, or null if the indexer is static.
index
Type: PostSharp.Aspects.Arguments
The arguments of the indexer.
value
Type: System.Object
The new value.

Return Value

Type: 
The indexer value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILocationBinding. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also