Export (0) Print
Expand All

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)

[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.


using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Resources;
using System.Diagnostics.SymbolStore;

namespace ILGenServer
{
   public class CodeGenerator
   {
      ModuleBuilder myModuleBuilder ;
      AssemblyBuilder myAssemblyBuilder ;

      public CodeGenerator()
      {

         // Get the current application domain for the current thread.
         AppDomain currentDomain = AppDomain.CurrentDomain;
         AssemblyName myAssemblyName = 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.
         ISymbolDocumentWriter myDocument =
         myModuleBuilder.DefineDocument("RTAsm.il", SymDocumentType.Text,
                  SymLanguageType.ILAssembly,SymLanguageVendor.Microsoft);

         Console.WriteLine("The object representing the defined document is:"+myDocument);

      }
   }
   public class CallerClass
   {
      public static void Main()
      {
         CodeGenerator myGenerator = new CodeGenerator();
      }
   }
}


.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

ADD
Show:
© 2014 Microsoft