SyntaxFactory.OptionStatement 方法

定义

重载

OptionStatement(SyntaxToken)

表示 Option 语句,例如“Option Strict On”。

OptionStatement(SyntaxToken, SyntaxToken)

表示 Option 语句,例如“Option Strict On”。

OptionStatement(SyntaxToken, SyntaxToken, SyntaxToken)

表示 Option 语句,例如“Option Strict On”。

OptionStatement(SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示 Option 语句,例如“Option Strict On”。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::OptionStatementSyntax ^ OptionStatement(Microsoft::CodeAnalysis::SyntaxToken nameKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax OptionStatement (Microsoft.CodeAnalysis.SyntaxToken nameKeyword);
static member OptionStatement : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax
Public Shared Function OptionStatement (nameKeyword As SyntaxToken) As OptionStatementSyntax

参数

nameKeyword
SyntaxToken

标识要设置的选项的关键字:显式、严格、比较或推理。

返回

适用于

OptionStatement(SyntaxToken, SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示 Option 语句,例如“Option Strict On”。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::OptionStatementSyntax ^ OptionStatement(Microsoft::CodeAnalysis::SyntaxToken nameKeyword, Microsoft::CodeAnalysis::SyntaxToken valueKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax OptionStatement (Microsoft.CodeAnalysis.SyntaxToken nameKeyword, Microsoft.CodeAnalysis.SyntaxToken valueKeyword);
static member OptionStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax
Public Shared Function OptionStatement (nameKeyword As SyntaxToken, valueKeyword As SyntaxToken) As OptionStatementSyntax

参数

nameKeyword
SyntaxToken

标识要设置的选项的关键字:显式、严格、比较或推理。

valueKeyword
SyntaxToken

标识符为选项设置的值的关键字:On、Off、Text 或 Binary。

返回

适用于

OptionStatement(SyntaxToken, SyntaxToken, SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示 Option 语句,例如“Option Strict On”。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::OptionStatementSyntax ^ OptionStatement(Microsoft::CodeAnalysis::SyntaxToken optionKeyword, Microsoft::CodeAnalysis::SyntaxToken nameKeyword, Microsoft::CodeAnalysis::SyntaxToken valueKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax OptionStatement (Microsoft.CodeAnalysis.SyntaxToken optionKeyword, Microsoft.CodeAnalysis.SyntaxToken nameKeyword, Microsoft.CodeAnalysis.SyntaxToken valueKeyword);
static member OptionStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OptionStatementSyntax
Public Shared Function OptionStatement (optionKeyword As SyntaxToken, nameKeyword As SyntaxToken, valueKeyword As SyntaxToken) As OptionStatementSyntax

参数

optionKeyword
SyntaxToken

“Option”关键字。

nameKeyword
SyntaxToken

标识要设置的选项的关键字:显式、严格、比较或推理。

valueKeyword
SyntaxToken

标识符为选项设置的值的关键字:On、Off、Text 或 Binary。

返回

适用于