Set a value into the Details bag. If a value with the same name already exists it is overwritten. If the value equals the default value it will be removed from the details bag.

Namespace:  N2
Assembly:  N2 (in N2.dll) Version: 1.0.404.40299 (1.4.4)

Syntax

C#
protected virtual void SetDetail<T>(
	string detailName,
	T value,
	T defaultValue
)
Visual Basic (Declaration)
Protected Overridable Sub SetDetail(Of T) ( _
	detailName As String, _
	value As T, _
	defaultValue As T _
)
Visual C++
protected:
generic<typename T>
virtual void SetDetail(
	String^ detailName, 
	T value, 
	T defaultValue
)

Parameters

detailName
Type: System..::.String
The name of the item to set.
value
Type: T
The value to set. If this parameter is null or equal to defaultValue the detail is removed.
defaultValue
Type: T
The default value. If the value is equal to this value the detail will be removed.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:N2.ContentItem.SetDetail``1(System.String,``0,``0)"]

See Also