Export (0) Print
Expand All
Expand Minimize

EnableCOMDATFolding Property

Visual Studio .NET 2003

Removes redundant COMDAT symbols from the linker output. Exposes the functionality of the /OPT linker option.

[Visual Basic .NET]
Public Property EnableCOMDATFolding() As optFoldingType
[Visual Basic 6]
Property Get EnableCOMDATFolding() As optFoldingType
Property Let EnableCOMDATFolding( _
   ByVal NewValue As optFoldingType _
) 
[C++]
HRESULT __stdcall get_EnableCOMDATFolding(
   /* [out, retval] */ optFoldingType* retVal
);
HRESULT __stdcall put_EnableCOMDATFolding(
   /* [in] */ optFoldingType NewValue
);
[C#]
public optFoldingType EnableCOMDATFolding {get; set;}
[JScript .NET]
public function get EnableCOMDATFolding() : optFoldingType
public function set EnableCOMDATFolding(
   NewValue : optFoldingType
)

Remarks

Use the optFoldingType enumeration to set the value of this property.

Example

The following sample code modifies the EnableCOMDATFolding 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.EnableCOMDATFolding = optFoldingType.optNoFolding
  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

Show:
© 2014 Microsoft