Sets a property or field value to the object (Dot notation enabled).
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static void SetPropertyValue(
this Object o,
string propertyName,
Object propertyValue
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Sub SetPropertyValue (
o As Object,
propertyName As String,
propertyValue As Object
) |
Visual C++ |
---|
public:
[ExtensionAttribute]
static void SetPropertyValue(
Object^ o,
String^ propertyName,
Object^ propertyValue
) |
F# |
---|
static member SetPropertyValue :
o : Object *
propertyName : string *
propertyValue : Object -> unit
|
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. 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