TryGetValue Method (key, value)

DTF API

Copy image CopyHover image
Deployment Tools Foundation TryGetValue Method (key, value)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPathMapTryGetValue(String, InstallPath%)
Attempts to get a value from the dictionary.
Declaration Syntax
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 
Parameters
key (String)
The key to lookup.
value (InstallPath%)
Receives the value, or null if they key was not found.
Return Value
Boolean
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)