共用方式為


/DELAYLOAD (Delay Load Import)

 

The latest version of this topic can be found at -DELAYLOAD (Delay Load Import).

DELAYLOAD:dllname

  
## Parameters  
 `dllname`  
 The name of a DLL that you want to delay load.  
  
## Remarks  
 The /DELAYLOAD option causes the DLL that's specified by `dllname` to be loaded only on the first call by the program to a function in that DLL. For more information, see [Linker Support for Delay-Loaded DLLs](../Topic/Linker%20Support%20for%20Delay-Loaded%20DLLs.md). You can use this option as many times as necessary to specify as many DLLs as you choose. You must use Delayimp.lib when you link your program, or you can implement your own delay-load helper function.  
  
 The [/DELAY](../Topic/-DELAY%20\(Delay%20Load%20Import%20Settings\).md) option specifies binding and loading options for each delay-loaded DLL.  
  
### To set this linker option in the Visual Studio development environment  
  
1.  Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
  
2.  In the **Linker** folder, select the **Input** property page.  
  
3.  Modify the **Delay Loaded DLLs** property.  
  
### To set this linker option programmatically  
  
-  See [DelayLoadDLLs](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.DelayLoadDLLs?qualifyHint=False&autoUpgrade=True).  
  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)