Click or drag to resize

OperationArgumentExtensionsTryGetProductGroupMenuImage Method

Returns a byte sequence presenting an image to be shown as a background on a menu button for the specified product group. If the product group doesn't have an image, null will be returned.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
public static byte[] TryGetProductGroupMenuImage(
	this IProductGroup productGroup
)

Parameters

productGroup
Type: Resto.Front.Api.Data.AssortmentIProductGroup
Product group to get menu image for.

Return Value

Type: Byte

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IProductGroup. 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).
Remarks
The image may be of any format, depending on what the user has uploaded.
See Also