Click or drag to resize

PropertyValueExtensionMethodsExpandPlaceholderText Method

Returns a string with M-Files placeholders replaced with values.

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
public static string ExpandPlaceholderText(
	this PropertyValues propertyValues,
	Vault vault,
	ObjVer targetObjVer,
	string format,
	bool hideMissingValues = true


Type: PropertyValues
PropertyValues Collection of the Context Object
Type: Vault
The vault object.
Type: ObjVer
The target object of the expansion.
Type: SystemString
A string containing placeholders that should be replaced.
hideMissingValues (Optional)
Type: SystemBoolean
Indicates whether placeholders should be left as they are if the object doesn't have a property referenced by a placeholder, instead of being replaced by an empty string. If set to false, format string can be passed to multiple objects.

Return Value

Type: String
Expanded Text

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