473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

attributes to display intellisense

Here is an example of a method I've written. I used xml comments, and the
Description attribute in the hopes that I would be able to display popup
info in the ide. No luck so far. Can anyone shed some light on this?

/// <summary>

/// Returns a list of asset tags for a device name (Location).

/// Data Repository Information:

/// SELECT * FROM kel_mm_eqp_main WHERE location = strDeviceName

/// </summary>

/// <param name="strDeviceName">Device Name (Location)</param>

/// <returns>DataSet containing asset tags</returns>

[Description("Returns a list of asset tags for a device name (Location).")]

public System.Data.DataSet GetAssetTags(string strDeviceName)

{

return CallListSQL("SELECT id FROM kel_mm_eqp_main WHERE location = " +
strDeviceName);

}
Nov 15 '05 #1
2 1798
Jim
That looks like it should work... I'm about done for the
day or I'd key it in real quick and give it a go... Did
you build the project and then include it as a reference
in your test app? I think it needs to be build and most
definitely a reference before the IDE will recognize it to
give you tooltips / dropdowns.

JIM
-----Original Message-----
Here is an example of a method I've written. I used xml comments, and theDescription attribute in the hopes that I would be able to display popupinfo in the ide. No luck so far. Can anyone shed some light on this?
/// <summary>

/// Returns a list of asset tags for a device name (Location).
/// Data Repository Information:

/// SELECT * FROM kel_mm_eqp_main WHERE location = strDeviceName
/// </summary>

/// <param name="strDeviceName">Device Name (Location) </param>
/// <returns>DataSet containing asset tags</returns>

[Description("Returns a list of asset tags for a device name (Location).")]
public System.Data.DataSet GetAssetTags(string strDeviceName)
{

return CallListSQL("SELECT id FROM kel_mm_eqp_main WHERE location = " +strDeviceName);

}
.

Nov 15 '05 #2
First you need to tell your project where to store the comments. These are
stored in XML files, and if you open the properties for your project, one of
the settings allows you to specify the name that it will be saved as. This
name should be the same as your assembly except it would have a ".xml" at
the end. If your assembly was named foo.dll, then your comment file would
be foo.xml.

Next, your comment file has to be in the same directory as your assembly for
VS.NET to locate it. This can often be tricky when dealing with multiple
projects as the IDE shadow copies all referenced assemblies but neglects the
XML files. Therefore, you could be building the comment files each compile
but it is really up to you to ensure the file gets moved to the directory
where your application resides.

"Jeremy Chapman" <No****@Please.com> wrote in message
news:#G*************@TK2MSFTNGP09.phx.gbl...
Here is an example of a method I've written. I used xml comments, and the
Description attribute in the hopes that I would be able to display popup
info in the ide. No luck so far. Can anyone shed some light on this?

/// <summary>

/// Returns a list of asset tags for a device name (Location).

/// Data Repository Information:

/// SELECT * FROM kel_mm_eqp_main WHERE location = strDeviceName

/// </summary>

/// <param name="strDeviceName">Device Name (Location)</param>

/// <returns>DataSet containing asset tags</returns>

[Description("Returns a list of asset tags for a device name (Location).")]
public System.Data.DataSet GetAssetTags(string strDeviceName)

{

return CallListSQL("SELECT id FROM kel_mm_eqp_main WHERE location = " +
strDeviceName);

}

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mike Jansen | last post by:
Does anyone know why if I create a complexType based off another complexType using xsd:extension the attributes don't seem to be inherited? Is this a bug/non-implementation in the .NET Schema...
3
by: SideByEach | last post by:
Check out the sample XML below. Sample XML: <xs:element name="Image"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="Type" type="xs:string"...
0
by: Kevin Ortman | last post by:
We recently ported our code from VSNET2002 to 2003 After migration, we noticed that several properties of one of our classes no longer pop up in intellisense ( the get_ set_ methods pop up, but...
2
by: Michael Maercker | last post by:
Hi! I know there's some way of using .Net's <Attributes> in my own code to set method descriptions etc. that will be shown in Intellisense while programming - or at least after compiling into a...
2
by: ringo | last post by:
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other applications, the only difference this time being...
1
by: Bruce | last post by:
I use btnSave.Attributes.Add("onclick", "ShowMessage()") to link my web control button to a JavaScript function. It works well until I added a Validation control into the page. After that,...
4
by: Julien | last post by:
Hello, I'm creating a custom control which inherits from Calendar. I wanted to know which attributes should I put to my properties and on my control to make the designer recognize it. For...
1
by: Steve K. | last post by:
I added a property to an interface like this: <code> public interface ISimpleAddress { string CarrierFax{ get; set; } } </code>
2
nukefusion
by: nukefusion | last post by:
Hi All, I've recently been venturing into the world of WPF and as a bit of a newbie in the subject I need all the help I can get. I'm using VS2008 with SP1 and Intellisense works fine for me on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.