Delen via


SyntaxGenerator.LockStatement Method

Definition

Creates a statement that represents a lock-block pattern.

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

Parameters

expression
SyntaxNode
statements
IEnumerable<SyntaxNode>

Returns

Applies to