Proprietà VCAssemblyReference.StrongName
Ottiene un valore che indica se il riferimento selezionato dispone di un nome sicuro.
Spazio dei nomi: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Sintassi
'Dichiarazione
ReadOnly Property StrongName As Boolean
bool StrongName { get; }
property bool StrongName {
bool get ();
}
abstract StrongName : bool with get
function get StrongName () : boolean
Valore proprietà
Tipo: System.Boolean
true se il riferimento ha un nome sicuro; in caso contrario, false.
Note
vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.
Esempi
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs, tools As IVCCollection
Dim cfg As VCConfiguration
Dim tool As VCManagedWrapperGeneratorTool
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCManagedWrapperGeneratorTool")
MsgBox("Strong name: " & tool.StrongName)
End Sub
End Module
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.