Click or drag to resize
CanvasSpriteBatchIsSupported Method
Checks whether CanvasSpriteBatch is supported on the current operating system version.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static bool IsSupported(
	CanvasDevice device
)

Parameters

device
Type: Microsoft.Graphics.CanvasCanvasDevice

Return Value

Type: Boolean
Remarks

If the application is currently running on an operating system that doesn't support sprite batch then calls to CreateSpriteBatch will fail.

If you know that your application will never run on an operating system that doesn't support sprite batch then there is no need to perform this check.

See Also