ICscHostObject.SetAllowUnsafeBlocks(Boolean) Method

Definition

Specifies a value indicating whether to allow code that uses the unsafe keyword to compile.

C#
public bool SetAllowUnsafeBlocks(bool allowUnsafeBlocks);

Parameters

allowUnsafeBlocks
Boolean

true to allow code that uses the unsafe keyword to compile; otherwise, false.

Returns

true if the method was successful; otherwise, false.

Applies to

Tuote Versiot
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17