Mathematica 9 is now available

Documentation / Mathematica / Add-ons & Links / .NET/Link / Part 1. Calling .NET from Mathematica: 'Installable .NET' /

Getting Information About Types and Objects

It is often convenient to be able to quickly display information about the methods, properties, fields, and so on that exist in a given .NET type. .NET/Link provides the NETTypeInfo function to obtain this information.

Getting information about types.

NETTypeInfo will load the type if it has not already been loaded.

This will display a lot of information about the Process class.

NETTypeInfo["System.Diagnostics.Process"]

This will show just the properties and methods.

NETTypeInfo["System.Diagnostics.Process", {"Methods", "Properties"}]

This will show just properties with names that begin with "Peak".

NETTypeInfo["System.Diagnostics.Process", "Properties", "Peak*"]

The default behavior is to display the members in C# syntax. If you want to see them in Visual Basic .NET syntax, use the LanguageSyntax option.

NETTypeInfo["System.Diagnostics.Process", LanguageSyntax->"VisualBasic"]



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.