![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
ApplyTransform Method (transformFile, errorConditionsToSuppress)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► ApplyTransform(String, TransformErrors)
Apply a transform to the database, specifying error conditions to suppress.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public void ApplyTransform( string transformFile, TransformErrors errorConditionsToSuppress )
Public Sub ApplyTransform ( transformFile As String, errorConditionsToSuppress As TransformErrors )
public: void ApplyTransform( String^ transformFile, TransformErrors errorConditionsToSuppress )
member ApplyTransform : transformFile : string * errorConditionsToSuppress : TransformErrors -> unit
![](collapse_all.gif)
- transformFile (String)
- Path to the transform file
- errorConditionsToSuppress (TransformErrors)
- Error conditions that are to be suppressed
![](collapse_all.gif)
Win32 MSI API: MsiDatabaseApplyTransform
![](collapse_all.gif)
Exception | Condition |
---|---|
InstallerException | the transform could not be applied |
InvalidHandleException | the Database handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)