描述如何创建和使用主互操作程序集。
用于COM互操作性的主互操作程序集。
Primary interop assemblies, which are used for COM interoperability.
主互操作程序集只能引用其他主互操作程序集。
Primary interop assemblies can reference only other primary interop assemblies.
这一节适合于用主互操作程序集编程的开发人员。
This section is for developers who program with primary interop assemblies.
可以注册一个支持多个类型库的主互操作程序集。
You can register a single primary interop assembly that supports multiple type libraries.
只引用其他主互操作程序集作为外部COM依赖项。
Reference only other primary interop assemblies for external COM dependencies.
注册是在计算机上定位主互操作程序集的最佳方式。
Registration is the best way for you to locate a primary interop assembly on your computer.
一个主互操作程序集可以包装同一类型库的多个版本。
A single primary interop assembly can wrap more than one version of the same type library.
对于开发人员,本节描述如何用主互操作程序集编程。
For developers, this section describes how to program with primary interop assemblies.
可以注册较新的主互操作程序集,覆盖注册表中的旧版本。
You can register the newer primary interop assembly, overwriting the older version in the registry.
注册的主互操作程序集在原类型库的注册表项下明确标记。
A registered primary interop assembly is clearly marked under the registry key of the original type library.
有关生成和使用主互操作程序集的更多信息,请参见主互操作程序集。
For more information about producing and using primary interop assemblies, see primary interop assemblies.
只能有一个主互操作程序集,而且该程序集必须由COM类型库的发行者用强名称签名。
There can be only one primary interop assembly, which must be signed with a strong name by the publisher of the COM type library.
有关在一个主互操作程序集中指定多个类型库版本的说明,请参见生成主互操作程序集。
For instructions on specifying multiple type library versions in a single primary interop assembly, see Generating primary interop Assemblies.
通过嵌入COM类型,您的应用程序不再要求目标计算机上存在主互操作程序集(PIA)。
You can embed com types so that your application no longer requires a primary interop assembly (PIA) on the target computer.
如果在发布了一个主互操作程序集后又对其进行了修改,应递增程序集版本号以区分以后的版本。
If you revise a primary interop assembly after shipping it, increment the assembly version number to differentiate later versions.
如果一个COM组件有多个版本,可能会有多个类型库,而且主互操作程序集可能会有多个版本。
When you have multiple versions of a COM component, you can have multiple type libraries, and possibly multiple versions of a primary interop assembly.
主互操作程序集与类型库由同一发行者提供。这些程序集描述和提供用该类型库定义的类型的正式定义。
Primary interop assemblies are provided by the same publisher as the type library they describe and provide the official definitions of the types defined with that type library.
现在部署的应用程序可以包含嵌入的类型信息来替换从主互操作程序集 (PIA) 导入的类型信息。
You can now deploy an application that has embedded type information instead of type information that is imported from a Primary Interop Assembly (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 you are the publisher, you must generate a primary interop assembly for the dependent type library before generating the referencing primary interop assembly.
通过嵌入的类型信息,应用程序可以使用程序集中的类型,而无需引用运行时程序集或主互操作程序集(PIA)。
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).
如果您的程序集引用第三方COM类型库中的类型,必须先从发行者获取一个主互操作程序集,才能生成您的主互操作程序集。
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类型库中的类型,必须先从发行者获取一个主互操作程序集,才能生成您的主互操作程序集。
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.
应用推荐