Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleGet a module's fully qualified name in Visual Basic .NET
DescriptionThis example shows how to get a module's fully qualified name in Visual Basic .NET.
Keywordsmodule name, fully qualified name, module location, Visual Basic .NET, VB.NET
CategoriesSoftware Engineering, VB.NET
 
The GetModuleName function returns the module's fully qualified name. It gets the Type for the Person class and uses that object's Module method to get the module. It then simply returns the module's FullyQualifiedName property.
 
Imports System.Reflection

Public Class Person
    ' Return the module's fully qualified name.
    Public Shared Function GetModuleName() As String
        Dim my_module As [Module] = GetType(Person).Module
        Return my_module.FullyQualifiedName
    End Function

    ...
End Class
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated