共用方式為


SyncLockBlockSyntax.Update 方法

定義

傳回具有指定之變更的這個複本。 如果沒有實際變更,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::SyncLockBlockSyntax ^ Update(Microsoft::CodeAnalysis::VisualBasic::Syntax::SyncLockStatementSyntax ^ syncLockStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endSyncLockStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SyncLockBlockSyntax Update (Microsoft.CodeAnalysis.VisualBasic.Syntax.SyncLockStatementSyntax syncLockStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endSyncLockStatement);
member this.Update : Microsoft.CodeAnalysis.VisualBasic.Syntax.SyncLockStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SyncLockBlockSyntax
Public Function Update (syncLockStatement As SyncLockStatementSyntax, statements As SyntaxList(Of StatementSyntax), endSyncLockStatement As EndBlockStatementSyntax) As SyncLockBlockSyntax

參數

syncLockStatement
SyncLockStatementSyntax

SyncLockStatement 屬性的值。

statements
SyntaxList<StatementSyntax>

Statements 屬性的值。

endSyncLockStatement
EndBlockStatementSyntax

EndSyncLockStatement 屬性的值。

傳回

適用於