共用方式為


SyntaxFactory.MultiLineSubLambdaExpression 方法

定義

多載

MultiLineSubLambdaExpression(LambdaHeaderSyntax, EndBlockStatementSyntax)

表示多行 Lambda 運算式。

MultiLineSubLambdaExpression(LambdaHeaderSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

表示多行 Lambda 運算式。

MultiLineSubLambdaExpression(LambdaHeaderSyntax, EndBlockStatementSyntax)

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

表示多行 Lambda 運算式。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineLambdaExpressionSyntax ^ MultiLineSubLambdaExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::LambdaHeaderSyntax ^ subOrFunctionHeader, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSubOrFunctionStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineLambdaExpressionSyntax MultiLineSubLambdaExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax subOrFunctionHeader, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSubOrFunctionStatement);
static member MultiLineSubLambdaExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineLambdaExpressionSyntax
Public Shared Function MultiLineSubLambdaExpression (subOrFunctionHeader As LambdaHeaderSyntax, endSubOrFunctionStatement As EndBlockStatementSyntax) As MultiLineLambdaExpressionSyntax

參數

subOrFunctionHeader
LambdaHeaderSyntax

Lambda 的標頭部分,其中包含 「Sub」 或 「Function」 關鍵字、引數清單和傳回類型。

endSubOrFunctionStatement
EndBlockStatementSyntax

如果這是多行 Lambda,則傳回 「End Sub」 或 「End Function」 語句。

傳回

適用於

MultiLineSubLambdaExpression(LambdaHeaderSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

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

表示多行 Lambda 運算式。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineLambdaExpressionSyntax ^ MultiLineSubLambdaExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::LambdaHeaderSyntax ^ subOrFunctionHeader, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSubOrFunctionStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineLambdaExpressionSyntax MultiLineSubLambdaExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax subOrFunctionHeader, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSubOrFunctionStatement);
static member MultiLineSubLambdaExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.LambdaHeaderSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineLambdaExpressionSyntax
Public Shared Function MultiLineSubLambdaExpression (subOrFunctionHeader As LambdaHeaderSyntax, statements As SyntaxList(Of StatementSyntax), endSubOrFunctionStatement As EndBlockStatementSyntax) As MultiLineLambdaExpressionSyntax

參數

subOrFunctionHeader
LambdaHeaderSyntax

Lambda 的標頭部分,其中包含 「Sub」 或 「Function」 關鍵字、引數清單和傳回類型。

statements
SyntaxList<StatementSyntax>

Lambda 的主體。 視 Lambda 類型而定,這是 StatementBody (多行 Lambda) 、Statement (單行 Sub Lambda) 或 Expression (單行函式) 。 這可能是空的清單。

endSubOrFunctionStatement
EndBlockStatementSyntax

如果這是多行 Lambda,則傳回 「End Sub」 或 「End Function」 語句。

傳回

適用於