CompositionEngine.TrySetProcessEngine(CompositionEngineType) Method

Definition

Attempts to set the composition engine type for the current process.

public:
 static bool TrySetProcessEngine(CompositionEngineType requested);
 static bool TrySetProcessEngine(CompositionEngineType const& requested);
public static bool TrySetProcessEngine(CompositionEngineType requested);
function trySetProcessEngine(requested)
Public Shared Function TrySetProcessEngine (requested As CompositionEngineType) As Boolean

Parameters

requested
CompositionEngineType

The CompositionEngineType to use for the process.

Returns

Boolean

bool

true if the engine type was set successfully; otherwise, false.

Remarks

This method must be called before any composition objects are created. Once a composition engine type has been set, it cannot be changed.

Applies to

See also