Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
Assembly Class

Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application.

System..::.Object
  System.Reflection..::.Assembly
    System.Reflection.Emit..::.AssemblyBuilder

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted := True)> _
Public MustInherit Class Assembly _
    Implements _Assembly, IEvidenceFactory, ICustomAttributeProvider, ISerializable
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
public abstract class Assembly : _Assembly, 
    IEvidenceFactory, ICustomAttributeProvider, ISerializable
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Unrestricted = true)]
public ref class Assembly abstract : _Assembly, 
    IEvidenceFactory, ICustomAttributeProvider, ISerializable
F#
[<AbstractClass>]
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)>]
type Assembly =  
    class
        interface _Assembly
        interface IEvidenceFactory
        interface ICustomAttributeProvider
        interface ISerializable
    end

The Assembly type exposes the following members.

  NameDescription
Protected methodAssemblyInitializes a new instance of the Assembly class.
Top
  NameDescription
Public propertyCodeBaseGets the location of the assembly as specified originally, for example, in an AssemblyName object.
Public propertyEntryPointGets the entry point of this assembly.
Public propertyEscapedCodeBaseGets the URI, including escape characters, that represents the codebase.
Public propertyEvidenceGets the evidence for this assembly.
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryFullNameGets the display name of the assembly.
Public propertyGlobalAssemblyCacheGets a value indicating whether the assembly was loaded from the global assembly cache.
Public propertyHostContextGets the host context with which the assembly was loaded.
Public propertyImageRuntimeVersionGets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.
Public propertyIsDynamicGets a value that indicates whether the current assembly was generated dynamically in the current process by using reflection emit.
Public propertyIsFullyTrustedGets a value that indicates whether the current assembly is loaded with full trust.
Public propertyLocationGets the path or UNC location of the loaded file that contains the manifest.
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryManifestModuleGets the module that contains the manifest for the current assembly.
Public propertyPermissionSetGets the grant set of the current assembly.
Public propertyReflectionOnlyGets a Boolean value indicating whether this assembly was loaded into the reflection-only context.
Public propertySecurityRuleSetGets a value that indicates which set of security rules the common language runtime (CLR) enforces for this assembly.
Top
  NameDescription
Public methodSupported by the XNA FrameworkCreateInstance(String)Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search.
Public methodCreateInstance(String, Boolean)Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search.
Public methodCreateInstance(String, Boolean, BindingFlags, Binder, array<Object>[]()[], CultureInfo, array<Object>[]()[])Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes.
Public methodStatic memberCreateQualifiedNameCreates the name of a type qualified by the display name of its assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryEqualsDetermines whether this assembly and the specified object are equal. (Overrides Object..::.Equals(Object).)

In XNA Framework 3.0, this member is inherited from Object..::.Equals(Object).


In Portable Class Library Portable Class Library, this member is inherited from Object..::.Equals(Object).
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberGetAssemblyGets the currently loaded assembly in which the specified class is defined.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibraryGetCallingAssemblyReturns the Assembly of the method that invoked the currently executing method.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetCustomAttributes(Boolean)Gets all the custom attributes for this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetCustomAttributes(Type, Boolean)Gets the custom attributes for this assembly as specified by type.
Public methodGetCustomAttributesDataReturns information about the attributes that have been applied to the current Assembly, expressed as CustomAttributeData objects.
Public methodStatic memberGetEntryAssemblyGets the process executable in the default application domain. In other application domains, this is the first executable that was executed by AppDomain..::.ExecuteAssembly.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibraryGetExecutingAssemblyGets the assembly that contains the code that is currently executing.
Public methodGetExportedTypesGets the public types defined in this assembly that are visible outside the assembly.
Public methodGetFileGets a FileStream for the specified file in the file table of the manifest of this assembly.
Public methodGetFiles()()()Gets the files in the file table of an assembly manifest.
Public methodGetFiles(Boolean)Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetHashCodeReturns the hash code for this instance. (Overrides Object..::.GetHashCode()()().)

In XNA Framework 3.0, this member is inherited from Object..::.GetHashCode()()().


In Portable Class Library Portable Class Library, this member is inherited from Object..::.GetHashCode()()().
Public methodGetLoadedModules()()()Gets all the loaded modules that are part of this assembly.
Public methodGetLoadedModules(Boolean)Gets all the loaded modules that are part of this assembly, specifying whether to include resource modules.
Public methodGetManifestResourceInfoReturns information about how the given resource has been persisted.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetManifestResourceNamesReturns the names of all the resources in this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetManifestResourceStream(String)Loads the specified manifest resource from this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetManifestResourceStream(Type, String)Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.
Public methodGetModuleGets the specified module in this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetModules()()()Gets all the modules that are part of this assembly.
Public methodGetModules(Boolean)Gets all the modules that are part of this assembly, specifying whether to include resource modules.
Public methodSupported by the XNA FrameworkGetName()()()Gets an AssemblyName for this assembly.
Public methodSupported by the XNA FrameworkGetName(Boolean)Gets an AssemblyName for this assembly, setting the codebase as specified by copiedName.
Public methodGetObjectDataGets serialization information with all of the data needed to reinstantiate this assembly.
Public methodGetReferencedAssembliesGets the AssemblyName objects for all the assemblies referenced by this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetSatelliteAssembly(CultureInfo)Gets the satellite assembly for the specified culture.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetSatelliteAssembly(CultureInfo, Version)Gets the specified version of the satellite assembly for the specified culture.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetType()()()Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetType(String)Gets the Type object with the specified name in the assembly instance.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetType(String, Boolean)Gets the Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found.
Public methodGetType(String, Boolean, Boolean)Gets the Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetTypesGets the types defined in this assembly.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryIsDefinedIndicates whether or not a specified attribute has been applied to the assembly.
Public methodStatic memberSupported by the XNA FrameworkLoad(AssemblyName)Loads an assembly given its AssemblyName.
Public methodStatic memberLoad(array<Byte>[]()[])Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the application domain of the caller.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibraryLoad(String)Loads an assembly given the long form of its name.
Public methodStatic memberLoad(AssemblyName, Evidence) Obsolete. Loads an assembly given its AssemblyName. The assembly is loaded into the domain of the caller using the supplied evidence.
Public methodStatic memberLoad(array<Byte>[]()[], array<Byte>[]()[])Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols for the assembly. The assembly is loaded into the application domain of the caller.
Public methodStatic memberLoad(String, Evidence) Obsolete. Loads an assembly given its display name, loading the assembly into the domain of the caller using the supplied evidence.
Public methodStatic memberLoad(array<Byte>[]()[], array<Byte>[]()[], Evidence) Obsolete. Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and evidence for the assembly. The assembly is loaded into the application domain of the caller.
Public methodStatic memberLoad(array<Byte>[]()[], array<Byte>[]()[], SecurityContextSource)Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and specifying the source for the security context. The assembly is loaded into the application domain of the caller.
Public methodStatic memberLoadFile(String)Loads the contents of an assembly file on the specified path.
Public methodStatic memberLoadFile(String, Evidence) Obsolete. Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence.
Public methodStatic memberSupported by the XNA FrameworkLoadFrom(String)Loads an assembly given its file name or path.
Public methodStatic memberLoadFrom(String, Evidence) Obsolete. Loads an assembly given its file name or path and supplying security evidence.
Public methodStatic memberLoadFrom(String, array<Byte>[]()[], AssemblyHashAlgorithm)Loads an assembly given its file name or path, hash value, and hash algorithm.
Public methodStatic memberLoadFrom(String, Evidence, array<Byte>[]()[], AssemblyHashAlgorithm) Obsolete. Loads an assembly given its file name or path, security evidence, hash value, and hash algorithm.
Public methodLoadModule(String, array<Byte>[]()[])Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file.
Public methodLoadModule(String, array<Byte>[]()[], array<Byte>[]()[])Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. The raw bytes representing the symbols for the module are also loaded.
Public methodStatic memberLoadWithPartialName(String) Obsolete. Loads an assembly from the application directory or from the global assembly cache using a partial name.
Public methodStatic memberLoadWithPartialName(String, Evidence) Obsolete. Loads an assembly from the application directory or from the global assembly cache using a partial name. The assembly is loaded into the domain of the caller using the supplied evidence.
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberReflectionOnlyLoad(array<Byte>[]()[])Loads the assembly from a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the reflection-only context of the caller's application domain.
Public methodStatic memberReflectionOnlyLoad(String)Loads an assembly into the reflection-only context, given its display name.
Public methodStatic memberReflectionOnlyLoadFromLoads an assembly into the reflection-only context, given its path.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryToStringReturns the full name of the assembly, also known as the display name. (Overrides Object..::.ToString()()().)
Public methodStatic memberUnsafeLoadFromLoads an assembly into the load-from context, bypassing some security checks.
Top
  NameDescription
Public eventModuleResolveOccurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means.
Top
  NameDescription
Public operatorStatic memberEqualityIndicates whether two Assembly objects are equal.
Public operatorStatic memberInequalityIndicates whether two Assembly objects are not equal.
Top
  NameDescription
Explicit interface implemetationPrivate method_Assembly..::.GetTypeReturns the type of the current instance.
Top

Use the Assembly class to load assemblies, to explore the metadata and constituent parts of assemblies, to discover the types contained in assemblies, and to create instances of those types.

To get an array of Assembly objects representing the assemblies currently loaded into an application domain (for example, the default application domain of a simple project), use the AppDomain..::.GetAssemblies method.

To load assemblies dynamically, the Assembly class provides the following static methods (Shared methods in Visual Basic). Assemblies are loaded into the application domain where the load operation occurs.

  • The recommended way to load assemblies is to use the Load method, which identifies the assembly to be loaded by its display name (for example, "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"). The search for the assembly follows the rules described in How the Runtime Locates Assemblies.

  • The ReflectionOnlyLoad and ReflectionOnlyLoadFrom methods enable you to load an assembly for reflection, but not for execution. For example, an assembly that targets a 64-bit platform can be examined by code that is running on a 32-bit platform.

  • The LoadFile and LoadFrom methods are provided for rare scenarios in which an assembly must be identified by path.

To get an Assembly object for the currently executing assembly, use the GetExecutingAssembly method.

Many members of the Assembly class provide information about an assembly. For example:

  • The GetName method returns an AssemblyName object that provides access to the parts of the assembly display name.

  • The GetCustomAttributes method lists the attributes applied to the assembly.

  • The GetFiles method provides access to the files in the assembly manifest.

  • The GetManifestResourceNames method provides the names of the resources in the assembly manifest.

The GetTypes method lists all the types in the assembly. The GetExportedTypes method lists the types that are visible to callers outside the assembly. The GetType method can be used to search for a particular type in the assembly. The CreateInstance method can be used to search for and create instances of types in the assembly.

For more information on assemblies, see Application Domains and Assemblies.

The following code example shows how to obtain the currently executing assembly, create an instance of a type contained in that assembly, and invoke one of the type's methods with late binding. For this purpose, the code example defines a class named Example, with a method named SampleMethod. The constructor of the class accepts an integer, which is used to compute the return value of the method.

The code example also demonstrates the use of the GetName method to obtain an AssemblyName object that can be used to parse the full name of the assembly. The example displays the version number of the assembly, the CodeBase property, and the EntryPoint property.

Visual Basic
Imports System
Imports System.Reflection
Imports System.Security.Permissions

<assembly: AssemblyVersionAttribute("1.0.2000.0")>

Public Class Example
    Private factor As Integer

    Public Sub New(ByVal f As Integer) 
        factor = f
    End Sub 

    Public Function SampleMethod(ByVal x As Integer) As Integer 
        Console.WriteLine(vbCrLf & "Example.SampleMethod({0}) executes.", x)
        Return x * factor
    End Function 

    Public Shared Sub Main() 
        Dim assem As [Assembly] = [Assembly].GetExecutingAssembly()

        Console.WriteLine("Assembly Full Name:")
        Console.WriteLine(assem.FullName)

        ' The AssemblyName type can be used to parse the full name.
        Dim assemName As AssemblyName = assem.GetName()
        Console.WriteLine(vbLf + "Name: {0}", assemName.Name)
        Console.WriteLine("Version: {0}.{1}", assemName.Version.Major, _
            assemName.Version.Minor)

        Console.WriteLine(vbLf + "Assembly CodeBase:")
        Console.WriteLine(assem.CodeBase)

        ' Create an object from the assembly, passing in the correct number
        ' and type of arguments for the constructor.
        Dim o As Object = assem.CreateInstance("Example", False, _
            BindingFlags.ExactBinding, Nothing, _
            New Object() { 2 }, Nothing, Nothing)

        ' Make a late-bound call to an instance method of the object.    
        Dim m As MethodInfo = assem.GetType("Example").GetMethod("SampleMethod")
        Dim ret As Object = m.Invoke(o, New Object() { 42 })
        Console.WriteLine("SampleMethod returned {0}.", ret)

        Console.WriteLine(vbCrLf & "Assembly entry point:")
        Console.WriteLine(assem.EntryPoint)

    End Sub 
End Class 

' This code example produces output similar to the following:
'
'Assembly Full Name:
'source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null
'
'Name: source
'Version: 1.0
'
'Assembly CodeBase:
'file:///C:/sdtree/AssemblyClass/vb/source.exe
'
'Example.SampleMethod(42) executes.
'SampleMethod returned 84.
'
'Assembly entry point:
'Void Main()
' 
C#
using System;
using System.Reflection;
using System.Security.Permissions;

[assembly:AssemblyVersionAttribute("1.0.2000.0")]

public class Example
{
    private int factor;
    public Example(int f)
    {
        factor = f;
    }

    public int SampleMethod(int x) 
    { 
        Console.WriteLine("\nExample.SampleMethod({0}) executes.", x);
        return x * factor;
    }

    public static void Main()
    {
        Assembly assem = Assembly.GetExecutingAssembly();

        Console.WriteLine("Assembly Full Name:");
        Console.WriteLine(assem.FullName);

        // The AssemblyName type can be used to parse the full name.
        AssemblyName assemName = assem.GetName();
        Console.WriteLine("\nName: {0}", assemName.Name);
        Console.WriteLine("Version: {0}.{1}", 
            assemName.Version.Major, assemName.Version.Minor);

        Console.WriteLine("\nAssembly CodeBase:");
        Console.WriteLine(assem.CodeBase);

        // Create an object from the assembly, passing in the correct number
        // and type of arguments for the constructor.
        Object o = assem.CreateInstance("Example", false, 
            BindingFlags.ExactBinding, 
            null, new Object[] { 2 }, null, null);

        // Make a late-bound call to an instance method of the object.    
        MethodInfo m = assem.GetType("Example").GetMethod("SampleMethod");
        Object ret = m.Invoke(o, new Object[] { 42 });
        Console.WriteLine("SampleMethod returned {0}.", ret);

        Console.WriteLine("\nAssembly entry point:");
        Console.WriteLine(assem.EntryPoint);
    }
}

/* This code example produces output similar to the following:

Assembly Full Name:
source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null

Name: source
Version: 1.0

Assembly CodeBase:
file:///C:/sdtree/AssemblyClass/cs/source.exe

Example.SampleMethod(42) executes.
SampleMethod returned 84.

Assembly entry point:
Void Main()
 */
Visual C++
using namespace System;
using namespace System::Reflection;
using namespace System::Security::Permissions;

[assembly:AssemblyVersionAttribute("1.0.2000.0")];

public ref class Example
{
private: 
    int factor;

public:
    Example(int f)
    {
        factor = f;
    }

    int SampleMethod(int x) 
    { 
        Console::WriteLine("\nExample->SampleMethod({0}) executes.", x);
        return x * factor;
    }
};

void main()
{
    Assembly^ assem = Assembly::GetExecutingAssembly();

    Console::WriteLine("Assembly Full Name:");
    Console::WriteLine(assem->FullName);

    // The AssemblyName type can be used to parse the full name.
    AssemblyName^ assemName = assem->GetName();
    Console::WriteLine("\nName: {0}", assemName->Name);
    Console::WriteLine("Version: {0}.{1}", 
        assemName->Version->Major, assemName->Version->Minor);

    Console::WriteLine("\nAssembly CodeBase:");
    Console::WriteLine(assem->CodeBase);

    // Create an object from the assembly, passing in the correct number and
    // type of arguments for the constructor.
    Object^ o = assem->CreateInstance("Example", false, 
        BindingFlags::ExactBinding, 
        nullptr, gcnew array<Object^> { 2 }, nullptr, nullptr);

    // Make a late-bound call to an instance method of the object.    
    MethodInfo^ m = assem->GetType("Example")->GetMethod("SampleMethod");
    Object^ ret = m->Invoke(o, gcnew array<Object^> { 42 });
    Console::WriteLine("SampleMethod returned {0}.", ret);

    Console::WriteLine("\nAssembly entry point:");
    Console::WriteLine(assem->EntryPoint);
}

/* This code example produces output similar to the following:

Assembly Full Name:
source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null

Name: source
Version: 1.0

Assembly CodeBase:
file:///C:/sdtree/AssemblyClass/cpp/source.exe

Example->SampleMethod(42) executes.
SampleMethod returned 84.

Assembly entry point:
UInt32 _mainCRTStartup()
 */

.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

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), 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.

This type is thread safe.

Biblioteca de clases de .NET Framework
Assembly (Clase)

Representa un ensamblado, que es un bloque de creación reutilizable, versionable y autodescriptivo de una aplicación de Common Language Runtime.

System..::.Object
  System.Reflection..::.Assembly
    System.Reflection.Emit..::.AssemblyBuilder

Espacio de nombres:  System.Reflection
Ensamblado:  mscorlib (en mscorlib.dll)
Visual Basic
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted := True)> _
Public MustInherit Class Assembly _
    Implements _Assembly, IEvidenceFactory, ICustomAttributeProvider, ISerializable
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
public abstract class Assembly : _Assembly, 
    IEvidenceFactory, ICustomAttributeProvider, ISerializable
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Unrestricted = true)]
public ref class Assembly abstract : _Assembly, 
    IEvidenceFactory, ICustomAttributeProvider, ISerializable
F#
[<AbstractClass>]
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)>]
type Assembly =  
    class
        interface _Assembly
        interface IEvidenceFactory
        interface ICustomAttributeProvider
        interface ISerializable
    end

El tipo Assembly expone los siguientes miembros.

  NombreDescripción
Método protegidoAssemblyInicializa una nueva instancia de la clase Assembly.
Arriba
  NombreDescripción
Propiedad públicaCodeBaseObtiene la ubicación del ensamblado tal y como se especificó originalmente, por ejemplo en un objeto AssemblyName.
Propiedad públicaEntryPointObtiene el punto de entrada de este ensamblado.
Propiedad públicaEscapedCodeBaseObtiene el identificador URI, incluidos los caracteres de escape, que representa el código base.
Propiedad públicaEvidenceObtiene la evidencia para este ensamblado.
Propiedad públicaCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifFullNameObtiene el nombre de presentación del ensamblado.
Propiedad públicaGlobalAssemblyCacheObtiene un valor que indica si el ensamblado se ha cargado desde la caché global de ensamblados.
Propiedad públicaHostContextObtiene el contexto del host con el que se cargó el ensamblado.
Propiedad públicaImageRuntimeVersionObtiene una cadena que representa la versión de Common Language Runtime (CLR) guardada en el archivo que contiene el manifiesto.
Propiedad públicaIsDynamicObtiene un valor que indica si el ensamblado actual se generó dinámicamente en el proceso actual utilizando emisión de la reflexión.
Propiedad públicaIsFullyTrustedObtiene un valor que indica si el ensamblado actual se carga con plena confianza.
Propiedad públicaLocationObtiene la ruta de acceso o la ubicación UNC del archivo cargado que contiene el manifiesto.
Propiedad públicaCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifManifestModuleObtiene el módulo que contiene el manifiesto para el ensamblado actual.
Propiedad públicaPermissionSetObtiene el conjunto de permisos del ensamblado actual.
Propiedad públicaReflectionOnlyObtiene un valor Boolean que indica si este ensamblado se cargó en el contexto de sólo reflexión.
Propiedad públicaSecurityRuleSetObtiene un valor que indica el conjunto de reglas de seguridad que Common Language Runtime (CLR) aplica para este ensamblado.
Arriba
  NombreDescripción
Método públicoCompatible con XNA FrameworkCreateInstance(String)Ubica el tipo especificado en este ensamblado y crea una instancia del mismo mediante el activador del sistema, realizando una búsqueda en la que se distingue entre mayúsculas y minúsculas.
Método públicoCreateInstance(String, Boolean)Ubica el tipo especificado de este ensamblado y crea una instancia del mismo mediante el activador del sistema, con búsqueda de mayúsculas y minúsculas opcional.
Método públicoCreateInstance(String, Boolean, BindingFlags, Binder, array<Object>[]()[], CultureInfo, array<Object>[]()[])Ubica el tipo especificado en este ensamblado y crea una instancia del mismo mediante el activador del sistema, con búsqueda de mayúsculas y minúsculas opcional y con los atributos de referencia cultural, argumentos, enlace y activación.
Método públicoMiembro estáticoCreateQualifiedNameCrea el nombre de un tipo calificado con el nombre de presentación de su ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifEqualsDetermina si este ensamblado y el objeto especificado son iguales. (Invalida a Object..::.Equals(Object)).

En XNA Framework 3.0, este miembro se hereda de Object..::.Equals(Object).


En  , este miembro se hereda de Object..::.Equals(Object).
Método protegidoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifFinalizePermite que un objeto intente liberar recursos y realizar otras operaciones de limpieza antes de ser reclamado por la recolección de elementos no utilizados. (Se hereda de Object).
Método públicoMiembro estáticoGetAssemblyObtiene el ensamblado cargado actualmente donde se define la clase especificada.
Método públicoMiembro estáticoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetCallingAssemblyDevuelve el objeto Assembly del método al que llamó el método actualmente en ejecución.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetCustomAttributes(Boolean)Obtiene los atributos personalizados para este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetCustomAttributes(Type, Boolean)Obtiene los atributos personalizados para este ensamblado tal y como lo especifica el tipo.
Método públicoGetCustomAttributesDataDevuelve información sobre los atributos que se han aplicado a la clase Assembly actual, expresada como objetos CustomAttributeData.
Método públicoMiembro estáticoGetEntryAssemblyObtiene el ejecutable de procesos en el dominio de la aplicación predeterminada. En otros dominios de la aplicación, este es el primer ejecutable que AppDomain..::.ExecuteAssembly ejecuta.
Método públicoMiembro estáticoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetExecutingAssemblyObtiene el ensamblado que contiene el código que se está ejecutando actualmente.
Método públicoGetExportedTypesObtiene los tipos públicos definidos en este ensamblado que se pueden ver desde fuera del ensamblado.
Método públicoGetFileObtiene un FileStream para el archivo especificado en la tabla de archivos del manifiesto de este ensamblado.
Método públicoGetFiles()()()Obtiene los archivos en la tabla de archivos de un manifiesto de ensamblado.
Método públicoGetFiles(Boolean)Obtiene los archivos en la tabla de archivos de un manifiesto de ensamblado, especificando si deben incluirse módulos de recursos.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetHashCodeDevuelve el código hash de esta instancia. (Invalida a Object..::.GetHashCode()()()).

En XNA Framework 3.0, este miembro se hereda de Object..::.GetHashCode()()().


En  , este miembro se hereda de Object..::.GetHashCode()()().
Método públicoGetLoadedModules()()()Obtiene todos los módulos cargados que forman parte de este ensamblado.
Método públicoGetLoadedModules(Boolean)Obtiene todos los módulos cargados que forman parte de este ensamblado, especificando si se deben incluir módulos de recursos.
Método públicoGetManifestResourceInfoDevuelve información sobre cómo el recurso dado ha persistido.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetManifestResourceNamesDevuelve los nombres de todos los recursos de este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetManifestResourceStream(String)Carga el recurso del manifiesto especificado a partir de este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetManifestResourceStream(Type, String)Carga el recurso del manifiesto especificado según el espacio de nombres del tipo especificado a partir de este ensamblado.
Método públicoGetModuleObtiene el módulo especificado en este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetModules()()()Obtiene todos los módulos que forman parte de este ensamblado.
Método públicoGetModules(Boolean)Obtiene todos los módulos que forman parte de este ensamblado e indica si se deben incluir módulos de recursos.
Método públicoCompatible con XNA FrameworkGetName()()()Obtiene un objeto AssemblyName para este ensamblado.
Método públicoCompatible con XNA FrameworkGetName(Boolean)Obtiene un AssemblyName para este ensamblado, estableciendo el código base tal y como se especifica en copiedName.
Método públicoGetObjectDataObtiene información de serialización con todos los datos necesarios para crear una nueva instancia de este ensamblado.
Método públicoGetReferencedAssembliesObtiene los objetos AssemblyName para todos los ensamblados a los que hace referencia este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetSatelliteAssembly(CultureInfo)Obtiene el ensamblado satélite para la referencia cultural especificada.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetSatelliteAssembly(CultureInfo, Version)Obtiene la versión especificada del ensamblado satélite para la referencia cultural especificada.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetType()()()Obtiene el objeto Type de la instancia actual. (Se hereda de Object).
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetType(String)Obtiene el objeto Type con el nombre especificado en la instancia del ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetType(String, Boolean)Obtiene el objeto Type con el nombre especificado en la instancia del ensamblado y, opcionalmente, produce una excepción si no se encuentra el tipo.
Método públicoGetType(String, Boolean, Boolean)Obtiene el objeto Type con el nombre especificado en la instancia del ensamblado, con las opciones para omitir el caso y producir una excepción si no se encuentra el tipo.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifGetTypesObtiene los tipos definidos en este ensamblado.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifIsDefinedIndica si se ha aplicado o no un atributo especificado al ensamblado.
Método públicoMiembro estáticoCompatible con XNA FrameworkLoad(AssemblyName)Carga un ensamblado determinado a partir de su AssemblyName.
Método públicoMiembro estáticoLoad(array<Byte>[]()[])Carga el ensamblado con una imagen que toma como base el formato Common Object File Format (COFF) y que contiene un ensamblado emitido. El ensamblado se carga en el dominio de aplicación del llamador.
Método públicoMiembro estáticoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifLoad(String)Carga un ensamblado a partir de su nombre largo.
Método públicoMiembro estáticoLoad(AssemblyName, Evidence) Obsoleto. Carga un ensamblado determinado a partir de su AssemblyName. El ensamblado se carga en el dominio del llamador con la evidencia proporcionada.
Método públicoMiembro estáticoLoad(array<Byte>[]()[], array<Byte>[]()[])Carga el ensamblado con una imagen que toma como base el formato Common Object File Format (COFF) que contiene un ensamblado emitido, incluyendo opcionalmente los símbolos del ensamblado. El ensamblado se carga en el dominio de aplicación del llamador.
Método públicoMiembro estáticoLoad(String, Evidence) Obsoleto. Carga un ensamblado determinado a partir de su nombre de presentación, cargando el ensamblado en el dominio del llamador mediante la evidencia proporcionada.
Método públicoMiembro estáticoLoad(array<Byte>[]()[], array<Byte>[]()[], Evidence) Obsoleto. Carga el ensamblado con una imagen que toma como base el formato Common Object File Format (COFF) que contiene un ensamblado emitido, incluyendo opcionalmente los símbolos y la evidencia del ensamblado. El ensamblado se carga en el dominio de aplicación del llamador.
Método públicoMiembro estáticoLoad(array<Byte>[]()[], array<Byte>[]()[], SecurityContextSource)Carga el ensamblado con una imagen que toma como base el formato Common Object File Format (COFF) que contiene un ensamblado emitido, incluyendo opcionalmente los símbolos y especificando el origen del contexto de seguridad. El ensamblado se carga en el dominio de aplicación del llamador.
Método públicoMiembro estáticoLoadFile(String)Carga el contenido de un archivo de ensamblado en la ruta de acceso especificada.
Método públicoMiembro estáticoLoadFile(String, Evidence) Obsoleto. Carga un ensamblado a partir de su ruta de acceso, cargando el ensamblado en el dominio del llamador mediante la evidencia proporcionada.
Método públicoMiembro estáticoCompatible con XNA FrameworkLoadFrom(String)Carga un ensamblado a partir del nombre o ruta de acceso del archivo.
Método públicoMiembro estáticoLoadFrom(String, Evidence) Obsoleto. Carga un ensamblado determinado a partir del nombre o ruta de acceso del archivo, a la vez que proporciona evidencia de seguridad.
Método públicoMiembro estáticoLoadFrom(String, array<Byte>[]()[], AssemblyHashAlgorithm)Carga un ensamblado a partir de su nombre o ruta de acceso de archivo, valor hash y algoritmo hash.
Método públicoMiembro estáticoLoadFrom(String, Evidence, array<Byte>[]()[], AssemblyHashAlgorithm) Obsoleto. Carga un ensamblado a partir de su nombre o ruta de acceso de archivo, evidencia de seguridad, valor hash y algoritmo hash.
Método públicoLoadModule(String, array<Byte>[]()[])Carga el módulo, que es interno para este ensamblado, con una imagen que toma como base el formato Common Object File Format (COFF) y que contiene un módulo emitido o un archivo de recursos.
Método públicoLoadModule(String, array<Byte>[]()[], array<Byte>[]()[])Carga el módulo, que es interno para este ensamblado, con una imagen que toma como base el formato Common Object File Format (COFF) y que contiene un módulo emitido o un archivo de recursos. También se cargan los bytes sin formato que representan a los símbolos del módulo.
Método públicoMiembro estáticoLoadWithPartialName(String) Obsoleto. Carga un ensamblado desde el directorio de la aplicación o desde la caché global de ensamblados utilizando un nombre parcial.
Método públicoMiembro estáticoLoadWithPartialName(String, Evidence) Obsoleto. Carga un ensamblado desde el directorio de la aplicación o desde la caché global de ensamblados utilizando un nombre parcial. El ensamblado se carga en el dominio del llamador con la evidencia proporcionada.
Método protegidoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifMemberwiseCloneCrea una copia superficial del objeto Object actual. (Se hereda de Object).
Método públicoMiembro estáticoReflectionOnlyLoad(array<Byte>[]()[])Carga el ensamblado desde una imagen que toma como base el formato Common Object File Format (COFF) y que contiene un ensamblado emitido. El ensamblado se carga en el contexto de sólo reflexión del dominio de aplicación del llamador.
Método públicoMiembro estáticoReflectionOnlyLoad(String)Carga un ensamblado en el contexto de sólo reflexión, de acuerdo con su nombre de presentación.
Método públicoMiembro estáticoReflectionOnlyLoadFromCarga un ensamblado en el contexto de sólo reflexión, de acuerdo con su ruta de acceso.
Método públicoCompatible con XNA Frameworkxbe1wdx9.PortableClassLibrary(es-es,VS.100).gifToStringDevuelve el nombre completo del ensamblado, también conocido como nombre de presentación. (Invalida a Object..::.ToString()()()).
Método públicoMiembro estáticoUnsafeLoadFromCarga un ensamblado en el contexto de origen de carga, omitiendo algunas comprobaciones de seguridad.
Arriba
  NombreDescripción
Evento públicoModuleResolveSe produce cuando el cargador de clases Common Language Runtime no puede resolver una referencia a un módulo interno de un ensamblado por medios normales.
Arriba
  NombreDescripción
Operador públicoMiembro estáticoEqualityIndica si dos objetos Assembly son iguales.
Operador públicoMiembro estáticoInequalityIndica si dos objetos Assembly no son iguales.
Arriba
  NombreDescripción
Implementación explícita de interfacesMétodo privado_Assembly..::.GetTypeDevuelve el tipo de la instancia actual.
Arriba

Utilice la clase Assembly para cargar los ensamblados, explorar los metadatos y las partes constituyentes de los ensamblados, detectar los tipos incluidos en los ensamblados y crear instancias de esos tipos.

Para obtener una matriz de objetos Assembly que represente los ensamblados que actualmente están cargados en un dominio de aplicación (por ejemplo, el dominio de aplicación predeterminado de un proyecto simple), utilice el método AppDomain..::.GetAssemblies.

Para cargar ensamblados dinámicamente, la clase Assembly proporciona los métodos estáticos siguientes (métodos Shared en Visual Basic). Los ensamblados se cargan en el dominio de aplicación en que se produce la operación de carga.

  • Se recomienda cargar los ensamblados utilizando el método Load, que identifica el ensamblado que se va a cargar mediante su nombre para mostrar (por ejemplo, "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"). La búsqueda del ensamblado se rige por las normas descritas en Cómo el motor en tiempo de ejecución ubica ensamblados.

  • Los métodos ReflectionOnlyLoad y ReflectionOnlyLoadFrom permiten cargar un ensamblado para su reflexión, pero no para su ejecución. Por ejemplo, un ensamblado que tiene como destino una plataforma de 64 bits puede ser examinado por el código que se ejecuta en una plataforma de 32 bits.

  • Los métodos LoadFile y LoadFrom se proporcionan para aquellas situaciones poco habituales en que un ensamblado debe identificarse mediante una ruta de acceso.

Si desea obtener un objeto Assembly para el ensamblado que se encuentra actualmente en ejecución, utilice el método GetExecutingAssembly.

Muchos miembros de la clase Assembly proporcionan información sobre un ensamblado. Por ejemplo:

  • El método GetName devuelve un objeto AssemblyName que proporciona acceso a las partes del nombre para mostrar del ensamblado.

  • El método GetCustomAttributes muestra los atributos que se aplican al ensamblado.

  • El método GetFiles proporciona acceso a los archivos del manifiesto del ensamblado.

  • El método GetManifestResourceNames proporciona los nombres de los recursos del manifiesto del ensamblado.

El método GetTypes muestra todos los tipos del ensamblado. El método GetExportedTypes indica los tipos que los llamadores pueden ver desde fuera del ensamblado. El método GetType se puede utilizar para buscar un tipo determinado en el ensamblado. El método CreateInstance se puede utilizar para buscar y crear instancias de tipos en el ensamblado.

Para obtener más información sobre los ensamblados, vea Dominios de aplicación y ensamblados.

En el ejemplo de código siguiente se muestra cómo se obtiene el ensamblado que se está ejecutando en la actualidad, cómo se crea una instancia de un tipo incluido en este ensamblado y cómo se llama a uno de los métodos del tipo con enlace en tiempo de ejecución. Para este fin, en el ejemplo de código se define una clase denominada Example con un método denominado SampleMethod. El constructor de la clase acepta un entero, que se utiliza para calcular el valor devuelto del método.

En el ejemplo de código también se muestra cómo se utiliza el método GetName para obtener un objeto AssemblyName que se puede utilizar para analizar el nombre completo del ensamblado. En el ejemplo se muestra el número de versión del ensamblado, la propiedad CodeBase y la propiedad EntryPoint.

Visual Basic
Imports System
Imports System.Reflection
Imports System.Security.Permissions

<assembly: AssemblyVersionAttribute("1.0.2000.0")>

Public Class Example
    Private factor As Integer

    Public Sub New(ByVal f As Integer) 
        factor = f
    End Sub 

    Public Function SampleMethod(ByVal x As Integer) As Integer 
        Console.WriteLine(vbCrLf & "Example.SampleMethod({0}) executes.", x)
        Return x * factor
    End Function 

    Public Shared Sub Main() 
        Dim assem As [Assembly] = [Assembly].GetExecutingAssembly()

        Console.WriteLine("Assembly Full Name:")
        Console.WriteLine(assem.FullName)

        ' The AssemblyName type can be used to parse the full name.
        Dim assemName As AssemblyName = assem.GetName()
        Console.WriteLine(vbLf + "Name: {0}", assemName.Name)
        Console.WriteLine("Version: {0}.{1}", assemName.Version.Major, _
            assemName.Version.Minor)

        Console.WriteLine(vbLf + "Assembly CodeBase:")
        Console.WriteLine(assem.CodeBase)

        ' Create an object from the assembly, passing in the correct number
        ' and type of arguments for the constructor.
        Dim o As Object = assem.CreateInstance("Example", False, _
            BindingFlags.ExactBinding, Nothing, _
            New Object() { 2 }, Nothing, Nothing)

        ' Make a late-bound call to an instance method of the object.    
        Dim m As MethodInfo = assem.GetType("Example").GetMethod("SampleMethod")
        Dim ret As Object = m.Invoke(o, New Object() { 42 })
        Console.WriteLine("SampleMethod returned {0}.", ret)

        Console.WriteLine(vbCrLf & "Assembly entry point:")
        Console.WriteLine(assem.EntryPoint)

    End Sub 
End Class 

' This code example produces output similar to the following:
'
'Assembly Full Name:
'source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null
'
'Name: source
'Version: 1.0
'
'Assembly CodeBase:
'file:///C:/sdtree/AssemblyClass/vb/source.exe
'
'Example.SampleMethod(42) executes.
'SampleMethod returned 84.
'
'Assembly entry point:
'Void Main()
' 
C#
using System;
using System.Reflection;
using System.Security.Permissions;

[assembly:AssemblyVersionAttribute("1.0.2000.0")]

public class Example
{
    private int factor;
    public Example(int f)
    {
        factor = f;
    }

    public int SampleMethod(int x) 
    { 
        Console.WriteLine("\nExample.SampleMethod({0}) executes.", x);
        return x * factor;
    }

    public static void Main()
    {
        Assembly assem = Assembly.GetExecutingAssembly();

        Console.WriteLine("Assembly Full Name:");
        Console.WriteLine(assem.FullName);

        // The AssemblyName type can be used to parse the full name.
        AssemblyName assemName = assem.GetName();
        Console.WriteLine("\nName: {0}", assemName.Name);
        Console.WriteLine("Version: {0}.{1}", 
            assemName.Version.Major, assemName.Version.Minor);

        Console.WriteLine("\nAssembly CodeBase:");
        Console.WriteLine(assem.CodeBase);

        // Create an object from the assembly, passing in the correct number
        // and type of arguments for the constructor.
        Object o = assem.CreateInstance("Example", false, 
            BindingFlags.ExactBinding, 
            null, new Object[] { 2 }, null, null);

        // Make a late-bound call to an instance method of the object.    
        MethodInfo m = assem.GetType("Example").GetMethod("SampleMethod");
        Object ret = m.Invoke(o, new Object[] { 42 });
        Console.WriteLine("SampleMethod returned {0}.", ret);

        Console.WriteLine("\nAssembly entry point:");
        Console.WriteLine(assem.EntryPoint);
    }
}

/* This code example produces output similar to the following:

Assembly Full Name:
source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null

Name: source
Version: 1.0

Assembly CodeBase:
file:///C:/sdtree/AssemblyClass/cs/source.exe

Example.SampleMethod(42) executes.
SampleMethod returned 84.

Assembly entry point:
Void Main()
 */
Visual C++
using namespace System;
using namespace System::Reflection;
using namespace System::Security::Permissions;

[assembly:AssemblyVersionAttribute("1.0.2000.0")];

public ref class Example
{
private: 
    int factor;

public:
    Example(int f)
    {
        factor = f;
    }

    int SampleMethod(int x) 
    { 
        Console::WriteLine("\nExample->SampleMethod({0}) executes.", x);
        return x * factor;
    }
};

void main()
{
    Assembly^ assem = Assembly::GetExecutingAssembly();

    Console::WriteLine("Assembly Full Name:");
    Console::WriteLine(assem->FullName);

    // The AssemblyName type can be used to parse the full name.
    AssemblyName^ assemName = assem->GetName();
    Console::WriteLine("\nName: {0}", assemName->Name);
    Console::WriteLine("Version: {0}.{1}", 
        assemName->Version->Major, assemName->Version->Minor);

    Console::WriteLine("\nAssembly CodeBase:");
    Console::WriteLine(assem->CodeBase);

    // Create an object from the assembly, passing in the correct number and
    // type of arguments for the constructor.
    Object^ o = assem->CreateInstance("Example", false, 
        BindingFlags::ExactBinding, 
        nullptr, gcnew array<Object^> { 2 }, nullptr, nullptr);

    // Make a late-bound call to an instance method of the object.    
    MethodInfo^ m = assem->GetType("Example")->GetMethod("SampleMethod");
    Object^ ret = m->Invoke(o, gcnew array<Object^> { 42 });
    Console::WriteLine("SampleMethod returned {0}.", ret);

    Console::WriteLine("\nAssembly entry point:");
    Console::WriteLine(assem->EntryPoint);
}

/* This code example produces output similar to the following:

Assembly Full Name:
source, Version=1.0.2000.0, Culture=neutral, PublicKeyToken=null

Name: source
Version: 1.0

Assembly CodeBase:
file:///C:/sdtree/AssemblyClass/cpp/source.exe

Example->SampleMethod(42) executes.
SampleMethod returned 84.

Assembly entry point:
UInt32 _mainCRTStartup()
 */

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Compatible con:

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2

.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Este tipo es seguro para la ejecución de subprocesos.

Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker