MethodBlockSyntax.WithSubOrFunctionStatement(MethodStatementSyntax) 方法

定义

返回一个副本,其中 SubOrFunctionStatement 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodBlockSyntax ^ WithSubOrFunctionStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::MethodStatementSyntax ^ subOrFunctionStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax WithSubOrFunctionStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax subOrFunctionStatement);
member this.WithSubOrFunctionStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodBlockSyntax
Public Function WithSubOrFunctionStatement (subOrFunctionStatement As MethodStatementSyntax) As MethodBlockSyntax

参数

subOrFunctionStatement
MethodStatementSyntax

返回

适用于