Table of Contents

TargetTypeDictionary.TryGetValue Method

Definition

Namespace
Sandcastle.Tools.BuildComponents.Targets
Assembly
Sandcastle.Tools.BuildComponents.dll

TryGetValue(string, out Target)

public bool TryGetValue(string key, out Target value)

Parameters

key string
value Target

Returns

bool

TryGetValue(string, out Target, out ReferenceLinkType)

This attempts to retrieve the item with the specified key, returning it along with the reference link type with which it is associated.

public bool TryGetValue(string key, out Target value, out ReferenceLinkType linkType)

Parameters

key string

The item key to look up

value Target

On return, this will contain the item value if found

linkType ReferenceLinkType

On return, this will contain the link type of the item if found

Returns

bool

True if the item was found, false if not