Attribute Statement :Attribute The :Attribute statement is used to attach .NET Attributes to a Method or a Class. :Attribute Statement for a Class. :Attribute statement for a Method.