Click or drag to resize

PropertyValuesExtensionMethodsSetProperty Method (PropertyValues, Int32, MFDataType, Object)

Adds or updates the specificed property in the property values collection with the passed value.

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public static PropertyValue SetProperty(
	this PropertyValues props,
	int propID,
	MFDataType dataType,
	Object value
)

Parameters

props
Type: PropertyValues
The source property values in which to set the property.
propID
Type: SystemInt32
The propertyDef of the PropertyValue
dataType
Type: MFDataType
The datatype of the PropertyValue
value
Type: SystemObject
The value of the PropertyValue

Return Value

Type: PropertyValue
The actual PropertyValue created/added to the propertyValues collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PropertyValues. 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