Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SymLanguageType Class

Holds the public GUIDs for language types to be used with the symbol store.

System.Object
  System.Diagnostics.SymbolStore.SymLanguageType

Namespace:  System.Diagnostics.SymbolStore
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
<ComVisibleAttribute(True)> _
Public Class SymLanguageType

The SymLanguageType type exposes the following members.

  NameDescription
Public methodSymLanguageTypeInitializes a new instance of the SymLanguageType class.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberBasicSpecifies the GUID of the Basic language type to be used with the symbol store.
Public fieldStatic memberCSpecifies the GUID of the C language type to be used with the symbol store.
Public fieldStatic memberCobolSpecifies the GUID of the Cobol language type to be used with the symbol store.
Public fieldStatic memberCPlusPlusSpecifies the GUID of the C++ language type to be used with the symbol store.
Public fieldStatic memberCSharpSpecifies the GUID of the C# language type to be used with the symbol store.
Public fieldStatic memberILAssemblySpecifies the GUID of the ILAssembly language type to be used with the symbol store.
Public fieldStatic memberJavaSpecifies the GUID of the Java language type to be used with the symbol store.
Public fieldStatic memberJScriptSpecifies the GUID of the JScript language type to be used with the symbol store.
Public fieldStatic memberMCPlusPlusSpecifies the GUID of the C++ language type to be used with the symbol store.
Public fieldStatic memberPascalSpecifies the GUID of the Pascal language type to be used with the symbol store.
Public fieldStatic memberSMCSpecifies the GUID of the SMC language type to be used with the symbol store.
Top

The following code example demonstrates how SymLanguageType is used when calling DefineDocument.


Imports System
Imports System.Reflection
Imports System.Reflection.Emit
Imports System.Resources
Imports System.Diagnostics.SymbolStore

Namespace ILGenServer

   Public Class CodeGenerator
      Private myModuleBuilder As ModuleBuilder
      Private myAssemblyBuilder As AssemblyBuilder

      Public Sub New()

         ' Get the current application domain for the current thread.
         Dim currentDomain As AppDomain = AppDomain.CurrentDomain
         Dim myAssemblyName As New AssemblyName()
         myAssemblyName.Name = "TempAssembly"

         ' Define a dynamic assembly in the current domain.
         myAssemblyBuilder = currentDomain.DefineDynamicAssembly(myAssemblyName, _
                                                         AssemblyBuilderAccess.RunAndSave)
         ' Define a dynamic module in "TempAssembly" assembly.
         myModuleBuilder = myAssemblyBuilder.DefineDynamicModule("TempModule", "Resource.mod", True)

         ' Define a document for source.on 'TempModule' module.
         Dim myDocument As ISymbolDocumentWriter = myModuleBuilder.DefineDocument("RTAsm.il", _
                     SymDocumentType.Text, SymLanguageType.ILAssembly, SymLanguageVendor.Microsoft)
         Console.WriteLine("The object representing the defined document is:" + _
                                                             CObj(myDocument).ToString())

      End Sub 'New
   End Class 'CodeGenerator

   Public Class CallerClass

      Public Shared Sub Main()
         Dim myGenerator As New CodeGenerator()
      End Sub 'Main
   End Class 'CallerClass
End Namespace 'ILGenServer


.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2017 Microsoft