TargetMachine Property
Visual Studio .NET 2003
Specifies the subsystem for the linker. Exposes the functionality of the /MACHINE linker option.
[Visual Basic .NET]
Public Property TargetMachine() As machineTypeOption
[Visual Basic 6]
Property Get TargetMachine() As machineTypeOption Property Let TargetMachine( _ ByVal NewValue As machineTypeOption _ )
[C++]
HRESULT __stdcall get_TargetMachine( /* [out, retval] */ machineTypeOption* retVal ); HRESULT __stdcall put_TargetMachine( /* [in] */ machineTypeOption NewValue );
[C#]
public machineTypeOption TargetMachine {get; set;}
[JScript .NET]
public function get TargetMachine() : machineTypeOption public function set TargetMachine( NewValue : machineTypeOption )
Remarks
Use the machineTypeOption enumeration to change the value of this property.
Example
The following sample code modifies the TargetMachine property in the development environment:
' add reference to Microsoft.VisualStudio.VCProjectEngine
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 VCLinkerTool
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCLinkerTool")
tool.TargetMachine = machineTypeOption.machineNotSet
End Sub
End Module
See Samples for Project Model Extensibility for information on how to compile and run this sample.
See Also
Applies To: VCLinkerTool Object