System.AttributeTargets Enumeration
Information   Base Types   Related Resources

Specifies the application elements on which it is valid to apply an attribute.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • System.Enum
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (6)Discussions (66)MembersRotorChanges
    Articles

    Page: 1
    A Data Access Layer to Persist Business Objects Using Attributes and Reflection
    The Code Project
    Then I came up with the idea of creating classes that would say how they should be persisted in the database. I would use attributes to say what database table my object should be persisted to, as well as other attributes to say what are the properties that should be mapped to table columns. From now on to update my code after a change in the solution I would only change the business object class.
    Attributes in .NET
    C#Today
    Developers have traditionally been adopting a functional approach to programming. Everything is a function or method, and functionality is explicitly asked for. While this works for building a monolith style application, component based programming doesnt exactly fit into this methodology. Loosely coupled systems are now being advocated over closely coupled systems. Furthermore, declarative and attribute based programming is gaining popularity where attributes can be declared on a class that annotate the behavior of the code and communicate this to the runtime and other objects. The .NET framework brings mainstream attribute based programming to the Windows environment by allowing the use of predefined and custom attributes on classes, and most code elements. In this article, we will look into the support that the .NET framework provides for attribute based programming and we will demonstrate the use of custom attributes by building a sample application that can trace all calls to your component by merely declaring a single attribute.
    Creating and Using Attributes in your .NET application
    The Code Project
    In this article I hope to show you what attributes are, how to use existing attributes, and how to create your own attributes to use in your own projects.
    Custom Attributes with .NET
    DotNetNut
    Write custom attributes for code documentation. Get yourself acquainted with attributes, how they work, how to apply them, and how to read them from assembly metadata. This article will open your eyes to how .NET uses attributes and the possible use of attributes in your own applications.
    Handy Type Editors. Filename Editor
    The Code Project
    Making the use of .NET design capabilities by implementing filename type editor.
    How Can You Migrate Your Existing Applications?
    C# Corner
    When a new technology emerges, companies and developers begin to wait anxiously for answers to their questions. Programmers need to learn about the new stuff because they want to use the new tools to develop their projects. Companies always want to move to new technology and build new products therefore; developers need to improve their knowledge and ability constantly to maintain their job against the new technology developers. Now, to learn and move to .NET environment is the answer to all these necessities. Our first objective is Visual C++ and migrating with .NET.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com