Udostępnij za pośrednictwem


SyntaxFactory.Attribute Method

Definition

Overloads

Attribute(TypeSyntax)

Represents a single attribute declaration within an attribute list.

Attribute(AttributeTargetSyntax, TypeSyntax, ArgumentListSyntax)

Represents a single attribute declaration within an attribute list.

Attribute(TypeSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a single attribute declaration within an attribute list.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeSyntax ^ Attribute(Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ name);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax Attribute (Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax name);
static member Attribute : Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax
Public Shared Function Attribute (name As TypeSyntax) As AttributeSyntax

Parameters

name
TypeSyntax

The name of the attribute.

Returns

Applies to

Attribute(AttributeTargetSyntax, TypeSyntax, ArgumentListSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a single attribute declaration within an attribute list.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeSyntax ^ Attribute(Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeTargetSyntax ^ target, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ name, Microsoft::CodeAnalysis::VisualBasic::Syntax::ArgumentListSyntax ^ argumentList);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax Attribute (Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeTargetSyntax target, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax name, Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax argumentList);
static member Attribute : Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeTargetSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax
Public Shared Function Attribute (target As AttributeTargetSyntax, name As TypeSyntax, argumentList As ArgumentListSyntax) As AttributeSyntax

Parameters

target
AttributeTargetSyntax

Optional attribute target. Assembly|Module :

name
TypeSyntax

The name of the attribute.

argumentList
ArgumentListSyntax

The argument list, if present. If no argument list was supplied, Nothing is returned.

Returns

Applies to