SetVBOptionCodeGenerator.Explicit(Boolean) 方法

定义

此类型/成员支持.NET Framework基础结构,不应直接从代码使用。将 SetVBOptionCodeGenerator 显式转换为开和关值。

public static System.Web.Razor.Generator.SetVBOptionCodeGenerator Explicit(bool onOffValue);
static member Explicit : bool -> System.Web.Razor.Generator.SetVBOptionCodeGenerator
Public Shared Function Explicit (onOffValue As Boolean) As SetVBOptionCodeGenerator

参数

onOffValue
Boolean

如果 转换为 on 和 off 值, SetVBOptionCodeGenerator 则为 true;否则为 false。

返回

显式 SetVBOptionCodeGenerator 转换为开和关值。

适用于