[]
Gets the value associated with the specified key.
public bool TryGetValue(Keys key, out string value)
Public Function TryGetValue(key As Keys, ByRef value As String) As Boolean
| Type | Name | Description |
|---|---|---|
| Keys | key | The key whose value to get. |
| string | value | This method returns the value associated with the specified key, if the key is found; otherwise, this method returns the default value for the type of the value parameter. This parameter is passed uninitialized. |
| Type | Description |
|---|---|
| bool | true if the collection contains an element with the specified key; otherwise, false. |