TryGetValue Method (key, value)

DTF API

Copy image CopyHover image
Deployment Tools Foundation TryGetValue Method (key, value)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerCustomActionDataTryGetValue(String, String%)
Gets the value with the specified key.
Declaration Syntax
C# Visual Basic Visual C++ F#
public bool TryGetValue(
	string key,
	out string value
)
Public Function TryGetValue ( 
	key As String,
	<OutAttribute> ByRef value As String
) As Boolean
public:
virtual bool TryGetValue(
	String^ key, 
	[OutAttribute] String^% value
) sealed
abstract TryGetValue : 
        key : string * 
        value : string byref -> bool 
override TryGetValue : 
        key : string * 
        value : string byref -> bool 
Parameters
key (String)
Case-sensitive data key.
value (String%)
Value associated with the specified key, or null if an item with the specified key was not found
Return Value
Boolean
true if the data contains an item with the specified key; otherwise, false.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)