共用方式為


SyntaxFactory.OptionStatement Method

Definition

Overloads

OptionStatement(SyntaxToken)

Represents an Option statement, such as "Option Strict On".

OptionStatement(SyntaxToken, SyntaxToken)

Represents an Option statement, such as "Option Strict On".

OptionStatement(SyntaxToken, SyntaxToken, SyntaxToken)

Represents an Option statement, such as "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

Represents an Option statement, such as "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

Parameters

nameKeyword
SyntaxToken

The keyword that identifies the option being set: Explicit, Strict, Compare or Infer.

Returns

Applies to

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

Represents an Option statement, such as "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

Parameters

nameKeyword
SyntaxToken

The keyword that identifies the option being set: Explicit, Strict, Compare or Infer.

valueKeyword
SyntaxToken

The keyword that identifiers the value being set for the option: On, Off, Text or Binary.

Returns

Applies to

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

Represents an Option statement, such as "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

Parameters

optionKeyword
SyntaxToken

The "Option" keyword.

nameKeyword
SyntaxToken

The keyword that identifies the option being set: Explicit, Strict, Compare or Infer.

valueKeyword
SyntaxToken

The keyword that identifiers the value being set for the option: On, Off, Text or Binary.

Returns

Applies to