Click or drag to resize
QueryExtensionsAsValueT Method
Converts object to a query value which can be used as a query parameter

Namespace: CMS.DataEngine.Query
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public static QueryValueExpression AsValue<T>(
	this T value,
	bool expand = false
)

Parameters

value
Type: T
Value
expand (Optional)
Type: SystemBoolean
If true, the value expands as constant

Type Parameters

T

Return Value

Type: QueryValueExpression

Usage Note

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