Compartilhar via


ICscHostObject.SetAllowUnsafeBlocks(Boolean) Method

Definition

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

public:
 bool SetAllowUnsafeBlocks(bool allowUnsafeBlocks);
public bool SetAllowUnsafeBlocks (bool allowUnsafeBlocks);
abstract member SetAllowUnsafeBlocks : bool -> bool
Public Function SetAllowUnsafeBlocks (allowUnsafeBlocks As Boolean) As Boolean

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