Reference3::StrongName Property
Gets whether the reference is signed with a public/private key pair.
Assembly: VSLangProj80 (in VSLangProj80.dll)
Property Value
Type: System::BooleanA boolean value indicating whether the reference is signed with a public/private key pair.
Implements
Reference2::StrongNameThe returned value depends on the reference type.
Reference Type | Value Returned |
|---|---|
Assembly | True if the reference has a strong name. |
COM | False; COM objects do not have strong names. |
Only assemblies with strong names may be placed in the global assembly cache. For more information on strong names and the global assembly cache, see Strong-Named Assemblies, Global Assembly Cache, and Working with Assemblies and the Global Assembly Cache.
This example adds an Assembly and a COM reference to an open Visual Basic or Visual C# project. It then determines if the assembly reference has a strong name. For the COM reference, StrongName is false. To run this example as an add-in, see How to: Compile and Run the Automation Object Model Code Examples.
The default paths for the added reference are: <installation root>\Program Files\Microsoft.NET\Primary Interop Assemblies for adodb.dll, and <installation root>\Program Files\Common Files\SpeechEngines\Microsoft for spcommon.dll. Replace <file path> in the example with these or other appropriate file paths.