CustomDocument.

Get(string, Object) Method

Summary

Gets the value for the specified key. This method never throws an exception. It will return the specified default value or null if the key is not found.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Documents
Containing Type
CustomDocument

Syntax

public Object Get(string key, Object defaultValue = null)

Parameters

Name Type Description
key string The key of the value to get.
defaultValue Object The default value to use if the key is not found.

Return Value

Type Description
Object The value for the specified key or the specified default value.
GitHub