Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9179309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:45:55+00:00 2026-06-17T17:45:55+00:00

Is it possible to get in .NET summary data somehow? /// <summary> /// I

  • 0

Is it possible to get in .NET summary data somehow?

 /// <summary>
 /// I need to get it programatically
 /// </summary>
 private void MethodA()
 {
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:45:57+00:00Added an answer on June 17, 2026 at 5:45 pm

    Use the EnvDTE namespace to get the current code element, you can then access the Comment and DocComment properties.

    You need to add references: How to: Add References to Automation Namespaces is a good place to start.

    Then you need to get access to the EnvDTE object: How to: Get References to the DTE and DTE2 Objects.

    From there it depends on where your code is located. Through EnvDTE you have to find the project item it’s declared in, browse to it, and then access the comment properties.

    You can get the current document through the ActiveDocument property on your DTE object, which will return a Document. If the Document is part of a project, you can grab the ProjectItem, and through there access the CodeElements collection.

    From there it gets slightly complicated. A CodeElement does not have a comment property. You can use CodeElement.Kind to see what specific kind of code element you’re looking at: CodeClass, CodeFunction, etc… After deciding on the correct type, and casting to it, you can finally access the comment text. For navigating through your code elements, remember that they can have Children (eg. Properties in a Class).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to get information about post field order in ASP.NET? I need
Is it possible to get private assembly key in .NET using only public token?
Possible Duplicate: Get URL of ASP.Net Page in code-behind I'm trying to hold current
Possible Duplicate: Get the resolution of a jpeg image using C# and the .NET
In .NET is it possible to get the HttpContext of the current page from
Is it possible to get help with this fiddle: http://jsfiddle.net/aLCfb/ . I am trying
Is it possible to get a return value other than error level from .net
Is it possible to use the .NET configuration objects to get at .config files
is it possible with basic ASP.net controls or Telerik's RadControls to get a two
Is it possible to get the size of system available memory in C#.NET? if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.