QueryExtensionsAsValueT Method |
Converts object to a query value which can be used as a query parameter
Namespace: CMS.DataEngine.QueryAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax 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:
QueryValueExpressionUsage 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