SyntaxGenerator.Attribute Method

Definition

Overloads

Attribute(String, IEnumerable<SyntaxNode>)

Creates an attribute.

Attribute(String, SyntaxNode[])

Creates an attribute.

Attribute(SyntaxNode, IEnumerable<SyntaxNode>)

Creates an attribute.

Attribute(AttributeData)

Creates an attribute matching existing attribute data.

Attribute(String, IEnumerable<SyntaxNode>)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an attribute.

public Microsoft.CodeAnalysis.SyntaxNode Attribute (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> attributeArguments = default);
public Microsoft.CodeAnalysis.SyntaxNode Attribute (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? attributeArguments = default);
member this.Attribute : string * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public Function Attribute (name As String, Optional attributeArguments As IEnumerable(Of SyntaxNode) = Nothing) As SyntaxNode

Parameters

name
String
attributeArguments
IEnumerable<SyntaxNode>

Returns

Applies to

Attribute(String, SyntaxNode[])

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an attribute.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ Attribute(System::String ^ name, ... cli::array <Microsoft::CodeAnalysis::SyntaxNode ^> ^ attributeArguments);
public Microsoft.CodeAnalysis.SyntaxNode Attribute (string name, params Microsoft.CodeAnalysis.SyntaxNode[] attributeArguments);
member this.Attribute : string * Microsoft.CodeAnalysis.SyntaxNode[] -> Microsoft.CodeAnalysis.SyntaxNode
Public Function Attribute (name As String, ParamArray attributeArguments As SyntaxNode()) As SyntaxNode

Parameters

name
String
attributeArguments
SyntaxNode[]

Returns

Applies to

Attribute(SyntaxNode, IEnumerable<SyntaxNode>)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an attribute.

public abstract Microsoft.CodeAnalysis.SyntaxNode Attribute (Microsoft.CodeAnalysis.SyntaxNode name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> attributeArguments = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode Attribute (Microsoft.CodeAnalysis.SyntaxNode name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? attributeArguments = default);
abstract member Attribute : Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function Attribute (name As SyntaxNode, Optional attributeArguments As IEnumerable(Of SyntaxNode) = Nothing) As SyntaxNode

Parameters

name
SyntaxNode
attributeArguments
IEnumerable<SyntaxNode>

Returns

Applies to

Attribute(AttributeData)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an attribute matching existing attribute data.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ Attribute(Microsoft::CodeAnalysis::AttributeData ^ attribute);
public Microsoft.CodeAnalysis.SyntaxNode Attribute (Microsoft.CodeAnalysis.AttributeData attribute);
member this.Attribute : Microsoft.CodeAnalysis.AttributeData -> Microsoft.CodeAnalysis.SyntaxNode
Public Function Attribute (attribute As AttributeData) As SyntaxNode

Parameters

attribute
AttributeData

Returns

Applies to