System::Reflection::Assembly 类

Assembly class

Reflection class describing assembly. Support is limited as the rules are quite different between C# and C++. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class Assembly : public System::Object

方法

方法描述
Assembly()构造函数。
virtual get_CodeBase() const获取当前程序集的目录。支持有限。
virtual get_FullName() const获取程序集的完整名称。
virtual get_Location() const获取程序集位置。未实现。
static GetAssembly(const TypeInfo&)获取定义特定类型的程序集。
static GetCallingAssembly()获取调用程序集。
static GetEntryAssembly()获取入口程序集。
static GetExecutingAssembly()获取执行程序集。
virtual GetManifestResourceNames() const获取清单资源的名称。
virtual GetManifestResourceStream(String) const获取连接到清单资源的流。
virtual GetName() const获取程序集名称。
virtual GetTypes() const获取程序集声明的类型。

另见