PropertyValueExtensionMethodsExpandPlaceholderText Method
Returns a string with M-Files placeholders replaced with values.
Namespace: MFiles.VAF.CommonAssembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
public static string ExpandPlaceholderText(
this PropertyValues propertyValues,
Vault vault,
ObjVer targetObjVer,
string format,
bool hideMissingValues = true
)
- propertyValues PropertyValues
- PropertyValues Collection of the Context Object
- vault Vault
- The vault object.
- targetObjVer ObjVer
- The target object of the expansion.
- format String
- A string containing placeholders that should be replaced.
- hideMissingValues Boolean (Optional)
-
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.
StringExpanded TextIn 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).