共用方式為


MethodBlockSyntax.WithEndSubOrFunctionStatement 方法

定義

傳回這個 的複本,其中 EndSubOrFunctionStatement 屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodBlockSyntax ^ WithEndSubOrFunctionStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSubOrFunctionStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax WithEndSubOrFunctionStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSubOrFunctionStatement);
member this.WithEndSubOrFunctionStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax
Public Function WithEndSubOrFunctionStatement (endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax

參數

endSubOrFunctionStatement
EndBlockStatementSyntax

傳回

適用於