共用方式為


SyntaxGenerator.LockStatement 方法

定義

建立表示鎖定區塊模式的語句。

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ LockStatement(Microsoft::CodeAnalysis::SyntaxNode ^ expression, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ statements);
public abstract Microsoft.CodeAnalysis.SyntaxNode LockStatement (Microsoft.CodeAnalysis.SyntaxNode expression, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> statements);
abstract member LockStatement : Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function LockStatement (expression As SyntaxNode, statements As IEnumerable(Of SyntaxNode)) As SyntaxNode

參數

expression
SyntaxNode
statements
IEnumerable<SyntaxNode>

傳回

適用於