共用方式為


MultiLineIfBlockSyntax.WithElseBlock(ElseBlockSyntax) 方法

定義

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::MultiLineIfBlockSyntax ^ WithElseBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::ElseBlockSyntax ^ elseBlock);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax WithElseBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax elseBlock);
member this.WithElseBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.ElseBlockSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.MultiLineIfBlockSyntax
Public Function WithElseBlock (elseBlock As ElseBlockSyntax) As MultiLineIfBlockSyntax

參數

elseBlock
ElseBlockSyntax

傳回

適用於