Click or drag to resize

BodyGetPropertyForKeyT Method (String, T)

Gets the cast property for the given key, or uses the default value if not found

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public T GetPropertyForKey<T>(
	string key,
	T defaultVal = null
)

Parameters

key
Type: SystemString
The key to search for
defaultVal (Optional)
Type: T
The value to use if the key is not found

Type Parameters

T
The type to cast to

Return Value

Type: T
The property for key, cast to T
See Also