Partager via


SyntaxFacts.IsAttributeName(SyntaxNode) Method

Definition

Checks if the SyntaxNode is an attribute name. To be an attribute name, the syntax must be parented by an Attribute and the node itself must be equal to the Attribute.Name property.

public:
 static bool IsAttributeName(Microsoft::CodeAnalysis::SyntaxNode ^ node);
public static bool IsAttributeName (Microsoft.CodeAnalysis.SyntaxNode node);
static member IsAttributeName : Microsoft.CodeAnalysis.SyntaxNode -> bool
Public Shared Function IsAttributeName (node As SyntaxNode) As Boolean

Parameters

node
SyntaxNode

Returns

Applies to