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.1.0.1 (2.1.0.1)
Syntax
C#
public static string ExpandPlaceholderText(
	this PropertyValues propertyValues,
	Vault vault,
	ObjVer targetObjVer,
	string format,
	bool hideMissingValues = true
)

Parameters

propertyValues
Type: PropertyValues
PropertyValues Collection of the Context Object
vault
Type: Vault
The vault object.
targetObjVer
Type: ObjVer
The target object of the expansion.
format
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