![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
TryGetValue Method (key, value)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPathMap ► TryGetValue(String, InstallPath%)
Attempts to get a value from the dictionary.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public bool TryGetValue( string key, out InstallPath value )
Public Function TryGetValue ( key As String, <OutAttribute> ByRef value As InstallPath ) As Boolean
public: virtual bool TryGetValue( String^ key, [OutAttribute] InstallPath^% value ) sealed
abstract TryGetValue : key : string * value : InstallPath byref -> bool override TryGetValue : key : string * value : InstallPath byref -> bool
![](collapse_all.gif)
- key (String)
- The key to lookup.
- value (InstallPath%)
- Receives the value, or null if they key was not found.
![](collapse_all.gif)
Boolean
True if the value was found, else false.
True if the value was found, else false.
Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.11.1.2318)