次の方法で共有


Reference.StrongName Property

Definition

Gets whether the reference is signed with a public/private key pair. Read-only.

public:
 property bool StrongName { bool get(); };
public:
 property bool StrongName { bool get(); };
[System.Runtime.InteropServices.DispId(15)]
public bool StrongName { [System.Runtime.InteropServices.DispId(15)] get; }
[<System.Runtime.InteropServices.DispId(15)>]
[<get: System.Runtime.InteropServices.DispId(15)>]
member this.StrongName : bool
Public ReadOnly Property StrongName As Boolean

Property Value

true if the reference is signed with a public/private key pair.

Attributes

Examples

See the example in Reference.

Remarks

The value returned 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.

Applies to