This documentation is archived and is not being maintained.

StrongName Property (VCProjectEngine) [Variant 2]

Visual Studio .NET 2003

Sets or returns the file or container from which to obtain strong name information.

[Visual Basic .NET]
Public Property StrongName() As String
[Visual Basic 6]
Property Get StrongName() As String
Property Let StrongName( _
   ByVal NewValue As String _
) 
[C++]
HRESULT __stdcall get_StrongName(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_StrongName(
   /* [in] */ BSTR NewValue
);
[C#]
public string StrongName {get; set;}
[JScript .NET]
public function get StrongName() : String
public function set StrongName(
   NewValue : String
)

Parameters

NewValue
A new file or container from which to obtain strong name information.

Return Value

The file or container from which to obtain strong name information.

Example

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET 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 VCAuxiliaryManagedWrapperGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCAuxiliaryManagedWrapperGeneratorTool")
        MsgBox("Strong name: " & tool.StrongName)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCAuxiliaryManagedWrapperGeneratorTool Object | VCManagedWrapperGeneratorTool Object

Show: