Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Wednesday, January 07, 2009

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > Visual Studio.Net > Attributes
Search:
What's New - What's Hot


ThreadPoolPriority, and MethodImplAttribute        
Total Hits: 30  |  Today: 0 Author: Stephen Toub       Rating:  
Read Reviews | Write Review |   Your Rating: 

Q I'm writing an app that queues thousands of operations to the ThreadPool during a run. Some operations are more important than others, and I want them to have a higher priority. In other words, if there are any high-priority operations waiting to be run, I want the ThreadPool to pick up and run those first, regardless of when they were queued. How can I accomplish this?...

Building an Attribute Documenter and Viewer        
Total Hits: 18  |  Today: 0 Author: Ken Spencer       Rating:  
Read Reviews | Write Review |   Your Rating: 

Q I'm trying to decide which Microsoft® .NET-compliant language to use to build my applications. I know one of the advantages of C# is the ability to comment code and turn those comments into XML docs. If I use Visual Basic® .NET, can I still do this?...

Designing With Custom Attributes        
Total Hits: 19  |  Today: 0 Author: Ted Pattison       Rating:  
Read Reviews | Write Review |   Your Rating: 

One of the most powerful aspects of the Microsoft® .NET Framework is its support for attributes. Attribute-based programming is extremely powerful because it adds a declarative dimension to designing and writing software. Declarative programming provides an elegant new way for developers to leverage services and functionality from reusable libraries and frameworks as well as from developer tools, such as the Visual Basic® .NET compiler....

Custom Attributes in .NET        
Total Hits: 28  |  Today: 0 Author: Arindam Sinha.       Rating:  
Read Reviews | Write Review |   Your Rating: 

Attributing is attaching declarative information to various programming entities and retrieving this at run-time. A program can specify the accessibility of a method in a class by specifying it with some access modifiers like private, public etc.

Where as the declarative information can be attached by defining and using attributes.

Custom attributing is nothing but a way to find out new attributes which is very requirement specific.

One of the most powerf...

Using the AutoGenerateColumns attribute to control column rendering        
Total Hits: 19  |  Today: 0 Author: Softomatix       Rating:  
Read Reviews | Write Review |   Your Rating: 

The datasource for your data grid may have quite a few data columns. But you may not want to display the information from all of them. And in some cases, you may want to combine the information from multiple fields to display in one data column of the grid. And extend our example we have added one more field to the dataset. This field contains the URLs for the article titles in the dataset. Now when we want to display the list of articles, there is no point displaying the long URLs to the client...

Frequently Asked Questions About Visual Studio .NET Automation        
Total Hits: 21  |  Today: 0 Author: Kemp Brown       Rating:  
Read Reviews | Write Review |   Your Rating: 

Since the release of Visual Studio .NET, users have been creating add-ins and using the automation model to create productivity tools and simplify their programming tasks. But as with any evolving technology, time and use have revealed some sticking points and areas that call for clarification and additional information. This article addresses some of the most frequently asked questions about Visual Studio .NET automation and extensibility, which are listed in the following Contents section....

Retrieving Information Stored in Attributes        
Total Hits: 52  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Retrieving a custom attribute is a simple process. First, declare an instance of the attribute you want to retrieve. Then, use the Attribute.GetCustomAttribute method to initialize the new attribute to the value of the attribute you want to retrieve. Once the new attribute is initialized, you simply use its properties to get the values. In the example, the DeveloperAttribute (described in the previous section) is applied to the MainApp class on the class level. The GetAttribute method uses GetCu...

Writing Custom Attributes        
Total Hits: 59  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

To design your own custom attributes, you do not need to master many new concepts. If you are familiar with object-oriented programming and know how to design classes, you already have most of the knowledge needed. Custom attributes are essentially traditional classes that derive directly or indirectly from System.Attribute. Just like traditional classes, custom attributes contain methods that store and retrieve data....

Applying Attributes        
Total Hits: 52  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

The attribute is emitted into metadata when you compile your code and is available to the common language runtime and any custom tool or application through the runtime reflection services. By convention, all attribute names end with Attribute. However, several languages that target the runtime, such as Visual Basic and C#, do not require you to specify the full name of an attribute. For example, if you want to initialize System.ObsoleteAttribute, you only need to reference it as Obsolete....

Attributes Overview        
Total Hits: 45  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

If you have used C++, you are probably familiar with declarations that contain keywords, such as public and private, that provide additional information about class members. These keywords further define the behavior of class members by describing their accessibility to other classes. Because compilers are explicitly designed to recognize predefined keywords, you do not traditionally have the opportunity to create your own. The common language runtime, however, allows you to add keyword-like des...

Creating Project Templates in .NET        
Total Hits: 190  |  Today: 0 Author: Paul Kimmel       Rating:  
Read Reviews | Write Review |   Your Rating: 

To help you and other developers jumpstart projects, you can extend Visual Studio .NET by adding custom project templates. This article demonstrates how to create a project template with a custom attribute class library. A class library is simply a DLL, and custom attributes are classes that inherit from System.Attribute, allowing you to define additional metadata to incorporate into your .NET assemblies. (Metadata is information added to .NET assemblies to help mitigate "DLL Hell.") In this art...

Using Attributes in COM+ and .NET        
Total Hits: 208  |  Today: 0 Author: Richard Grimes       Rating:  
Read Reviews | Write Review |   Your Rating: 

According to my old school dictionary, the verb 'attribute' means 'to consider as belonging to', while the noun means 'a quality or property inseparable from an item'. In Windows programming, the term 'attribute' is used by many technologies, and with the release of the .NET framework you'll find it used even more. In general, an attribute is a property of an item which forms part of its description and defines some aspect of its behaviour....

.NET Attributes        
Total Hits: 170  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

Attributes can be used to document classes at design time, specify runtime information (such as the name of an XML field to be used when serializing information from the class), and even dictate runtime behavior....



DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net