iikoFront Api V7Preview7 Code Reference
iikoFront Api V7Preview7 Code Reference
Resto.Front.Api
OperationArgumentExtensions Class
OperationArgumentExtensions Methods
GetCommonGroupModifiers Method
GetCommonSimpleModifiers Method
GetGroupModifiers Method
GetSimpleModifiers Method
GetSplittableGroupModifiers Method
GetSplittableSimpleModifiers Method
GetUserRoles Method
TryGetProductGroupMenuImage Method
TryGetProductMenuImage Method

# OperationArgumentExtensions TryGetProductMenuImage Method

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

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V7Preview7 (in Resto.Front.Api.V7Preview7.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    public static byte[] TryGetProductMenuImage(
    	this IProduct product
    )

#### Parameters

product
  Type: Resto.Front.Api.Data.Assortment
  IProduct
  Product 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 IProduct. 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

#### Reference

OperationArgumentExtensions Class
Resto.Front.Api Namespace