This topic describes how to edit an interop assembly.
本主题说明如何编辑互操作程序集。
You do not have to deploy the interop assembly with your application.
无需将互操作程序集与您的应用程序一起部署。
In this case, the interop assembly must be deployed with your application.
在本例中,互操作程序集必须与您的应用程序一起部署。
This tool creates an interop assembly and namespace for the type information automatically.
这个工具为类型信息自动地创建一个interop集合和命名空间。
Responses from the COM object are routed to the interop assembly and forwarded to your.
来自COM对象的响应被路由到互操作程序集,并转发到。
You can register a single primary interop assembly that supports multiple type libraries.
可以注册一个支持多个类型库的主互操作程序集。
Deploying interop assemblies: You can create a standard reference to an interop assembly.
部署互操作程序集:您可以创建一个对互操作程序集的标准引用。
A single primary interop assembly can wrap more than one version of the same type library.
一个主互操作程序集可以包装同一类型库的多个版本。
Deploying interop assemblies: You can create a standard reference to the interop assembly.
部署互操作程序集:您可以创建一个对互操作程序集的标准引用。
Registration is the best way for you to locate a primary interop assembly on your computer.
注册是在计算机上定位主互操作程序集的最佳方式。
By deploying interop assemblies: You can create a standard reference to an interop assembly.
通过部署互操作程序集:您可以创建一个对互操作程序集的标准引用。
You can register the newer primary interop assembly, overwriting the older version in the registry.
可以注册较新的主互操作程序集,覆盖注册表中的旧版本。
The resulting assembly is called an interop assembly, and the type information it contains enables.
生成的程序集称为互操作程序集,其中包含的类型信息允许。
A registered primary interop assembly is clearly marked under the registry key of the original type library.
注册的主互操作程序集在原类型库的注册表项下明确标记。
In either case, to compile properly, the interop assembly must be in the same directory as the other project files.
在这两种情况下,若要正确地进行编译,互操作程序集必须与其他项目文件位于同一个目录中。
Describes how to adjust the marshaling behavior of types in an interop assembly and how to define COM types manually.
描述如何调整互操作程序集中类型的封送处理行为以及如何以手动方式定义COM类型。
NET clients can access the same copy of the interop assembly, which is signed and installed in the global assembly cache.
对于在全局程序集缓存中签名并安装的互操作程序集,多个.NET客户端可以访问该程序集的同一副本。
You can embed com types so that your application no longer requires a primary interop assembly (PIA) on the target computer.
通过嵌入COM类型,您的应用程序不再要求目标计算机上存在主互操作程序集(PIA)。
There can be only one primary interop assembly, which must be signed with a strong name by the publisher of the COM type library.
只能有一个主互操作程序集,而且该程序集必须由COM类型库的发行者用强名称签名。
If you revise a primary interop assembly after shipping it, increment the assembly version number to differentiate later versions.
如果在发布了一个主互操作程序集后又对其进行了修改,应递增程序集版本号以区分以后的版本。
When you use embedded interop types, you can embed them from the primary interop assembly published by the author of the com component.
当使用嵌入的互操作类型时,您可以从COM组件的作者所发布的主互操作程序集中嵌入这些类型。
For instructions on specifying multiple type library versions in a single primary interop assembly, see Generating primary interop Assemblies.
有关在一个主互操作程序集中指定多个类型库版本的说明,请参见生成主互操作程序集。
Altering the interop assembly name can help distinguish it from the original COM DLL and prevent problems that can occur from having duplicate names.
更改互操作程序集名称有助于将它同初始的COMDLL区分开来,并避免可能因重名而导致的问题。
When you have multiple versions of a COM component, you can have multiple type libraries, and possibly multiple versions of a primary interop assembly.
如果一个COM组件有多个版本,可能会有多个类型库,而且主互操作程序集可能会有多个版本。
You can now deploy an application that has embedded type information instead of type information that is imported from a Primary Interop Assembly (PIA).
现在部署的应用程序可以包含嵌入的类型信息来替换从主互操作程序集 (PIA)导入的类型信息。
If you are the publisher, you must generate a primary interop assembly for the dependent type library before generating the referencing primary interop assembly.
如果您是发行者,必须先为相关类型库生成一个主互操作程序集,才能生成引用这些类型库的主互操作程序集。
A COM type library that is imported as an assembly and signed by someone other than the publisher of the original type library cannot be a primary interop assembly.
如果导入为程序集的COM类型库不是由原类型库的发行者签名的,该类型库不能作为主互操作程序集。
With embedded type information, your application can use types from an assembly without requiring a reference to the runtime assembly or Primary Interop assembly (PIA).
通过嵌入的类型信息,应用程序可以使用程序集中的类型,而无需引用运行时程序集或主互操作程序集(PIA)。
A dependent primary interop assembly with a version number that differs from that of the original type library is not discoverable when installed in the current directory.
如果相关主互操作程序集的版本号与原类型库的版本号不同,即使安装在当前目录中也无法发现该程序集。
If your assembly references types from a third-party COM type library, you must obtain a primary interop assembly from the publisher before you can generate your primary interop assembly.
如果您的程序集引用第三方COM类型库中的类型,必须先从发行者获取一个主互操作程序集,才能生成您的主互操作程序集。
应用推荐