OptimizeForWindows98 Property
Visual Studio .NET 2003
Align code on 4 KB boundaries. This improves performance on Windows 98 systems. Exposes the functionality of the /OPT linker option.
[Visual Basic .NET]
Public Property OptimizeForWindows98() As optWin98Type
[Visual Basic 6]
Property Get OptimizeForWindows98() As optWin98Type Property Let OptimizeForWindows98( _ ByVal NewValue As optWin98Type _ )
[C++]
HRESULT __stdcall get_OptimizeForWindows98( /* [out, retval] */ optWin98Type* retVal ); HRESULT __stdcall put_OptimizeForWindows98( /* [in] */ optWin98Type NewValue );
[C#]
public optWin98Type OptimizeForWindows98 {get; set;}
[JScript .NET]
public function get OptimizeForWindows98() : optWin98Type public function set OptimizeForWindows98( NewValue : optWin98Type )
Remarks
Use the optWin98Type enumeration to change the value of this property.
Example
The following sample code modifies the OptimizeForWindows98 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.OptimizeForWindows98 = optWin98Type.optWin98Yes
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