Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Friday, September 03, 2010

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

Build the right apps the right way with powerful development tools.
Visual Studio 2010. Learn more...

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


Enable VB to accept files and change file attributes    Version: 0.00       Price: $0.00   
Total Hits: 22  |  Today: 0 Author: Hosam Ershedat       Rating:  
Read Reviews | Write Review |   Your Rating: 

This is a simple VB6 application that can change file or folder attributes and teach you how to accept dropped files, and files from command line. The purpose of this article is for beginners to know how to create WndProc function and translate the message WM_DROPFILES....

Attributes        
Total Hits: 406  |  Today: 0 Author: Steven Roman, Ph.D., Ron Petrusha, Paul Lomax       Rating:  
Read Reviews | Write Review |   Your Rating: 

The Visual Basic compiler and .NET platform automatically recognize the meaning of the attributes based on attribute classes in the .NET Framework Class Library. This recognition isn't true, however, for custom attributes. Thus, not only must you define them, you must also develop a set of routines that will identify the presence of an attribute so your code can handle them. NET assemblies are self-describing; when the compiler creates the .NET assembly, it writes metadata describing the assembl...

Attributes        
Total Hits: 365  |  Today: 0 Author: Steven Roman, Ph.D., Ron Petrusha, Paul Lomax       Rating:  
Read Reviews | Write Review |   Your Rating: 

Attributes are declarative tags that can be used to annotate types or class members, thereby modifying their meaning or customizing their behavior. This descriptive information provided by the attribute is stored as metadata in a .NET assembly and can be extracted either at design time or at runtime using reflection....

Attributes        
Total Hits: 338  |  Today: 0 Author: Steven Roman, Ph.D., Ron Petrusha, Paul Lomax       Rating:  
Read Reviews | Write Review |   Your Rating: 

An attribute is merely a class that inherits from System.Attribute, which makes it very easy to implement a custom attribute. In this section, we'll build a custom attribute called , which allows a developer to add assorted information (the developer's name, the date, a comment, and whether a code modification was a response to a bug) to code....

How to Set File Attributes Using Visual Basic.Net        
Total Hits: 3571  |  Today: 0 Author: DevASP       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article is about how you can get and set the attributes of a file like Read only, Hidden, System....

Properties, Getting and Setting Them Dynamically        
Total Hits: 364  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

In the following code snippets we'll cover how to get the properties of your object at run time. This can be handy to know if you're going to generate dynamic reports, or some other function of dynamically viewing and assigning values of the properties of an object....

Designing With Custom Attributes        
Total Hits: 264  |  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. As a user of Visual Basic .NET, it's essential that you und...

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

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?
It's been obvious to me that with a little work, a cool documentation facility could be added to Visual Basic .NET. Recently, I found the time to dig into it. As luck would have it, I just picked up a copy of Matt Tagliaferri's book, Visual Basic...

An Introduction to Custom Attributes and Reflection in VB.NET        
Total Hits: 369  |  Today: 0 Author: Peter McMahon       Rating:  
Read Reviews | Write Review |   Your Rating: 

Visual Basic.NET provides a totally new language construct called "Attributes". Attributes allow the developer to specify information about a class, method, parameter etc. This information could change runtime behaviour, provide details about the usage of a class, or expose organisational information to the development team. Custom attributes allow the programmer to specify custom details about a programming construct that is both directly visible and available when reading the code (as a commen...

Creating Custom Attributes in Visual Basic .NET        
Total Hits: 423  |  Today: 0 Author: Paul Kimmel.       Rating:  
Read Reviews | Write Review |   Your Rating: 

You can define a class in any project and any source file. Technically, attributes are just classes. However, because you use attributes to decorate elements of code, you may want to use them in more than just one particular project. For this reason, it's a good idea to create attributes in a separate class library assembly. You can use the Class Library project template to create a new class library project. The Class Library project template uses the Wizard Engine to make a copy of a .vb file ...

Modelling Attributes using Value Objects    Version: 0.00       Price: $0.00   
Total Hits: 5  |  Today: 0 Author: Richard A. Dalton       Rating:  
Read Reviews | Write Review |   Your Rating: 

When it comes to modelling objects, simple attributes often fail to get the consideration they deserve. The lazy option is to model attributes using fundamental datatypes like Longs or Strings. This misses the opportunity to create far more meaningful and robust code. This article takes the example of a Temperature attribute and works from a naive implementation towards a more object oriented approach. Along the way we'll learn the benefits of Value Objects and how to implement them....

Walkthrough: Serializing Collections of Standard Types with the DesignerSerializationVisibilityAttribute    Version: 0.00       Price: $0.00   
Total Hits: 5  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Your custom controls will sometimes expose a collection as a property. This walkthrough demonstrates how to use the DesignerSerializationVisibilityAttribute class to control how a collection is serialized at design time. Applying the Content value to your collection property ensures that the property will be serialized....

Walkthrough: Serializing Collections of Standard Types with the DesignerSerializationVisibilityAttribute    Version: 0.00       Price: $0.00   
Total Hits: 11  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Your custom controls will sometimes expose a collection as a property. This walkthrough demonstrates how to use the DesignerSerializationVisibilityAttribute class to control how a collection is serialized at design time. Applying the Content value to your collection property ensures that the property will be serialized....

Walkthrough: Serializing Collections of Standard Types with the DesignerSerializationVisibilityAttribute    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Your custom controls will sometimes expose a collection as a property. This walkthrough demonstrates how to use the DesignerSerializationVisibilityAttribute class to control how a collection is serialized at design time. Applying the Content value to your collection property ensures that the property will be serialized....

HideModuleNameAttribute Class    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

The HideModuleNameAttribute attribute, when applied to a module, allows the module members to be accessed using only the qualification needed for the module....

MyGroupCollectionAttribute..::.MyGroupName Property        
Total Hits: 10  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

This property supports My in Visual Basic....

MyGroupCollectionAttribute..::.DefaultInstanceAlias Property    Version: 0.00       Price: $0.00   
Total Hits: 6  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

This property supports My in Visual Basic....

MyGroupCollectionAttribute..::.CreateMethod Property    Version: 0.00       Price: $0.00   
Total Hits: 7  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

This property supports My in Visual Basic....

Global Attributes in Visual Basic    Version: 0.00       Price: $0.00   
Total Hits: 16  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Most attributes are attached to specific language elements such as classes or methods. However, some attributes are global—they can apply to a whole assembly or module. You can set many of the attributes in the Visual Studio Integrated Development Environment (IDE) through the Assembly Information Dialog Box. For more information, see Managing Application Properties and Managing Assembly and Manifest Signing....

ExternalDataExchangeAttribute Class    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your Rating: 

Marks an interface as a local service interface. This class cannot be inherited....


1  2  Next >> 

DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net