Interface ITempDataBuilder
Used for building Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.TempData.dll
Syntax
public interface ITempDataBuilder
Methods
| Improve this Doc View SourceWithEntries(IDictionary<String, Object>)
Adds temp data entries to the built Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.
Declaration
IAndTempDataBuilder WithEntries(IDictionary<string, object> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | entries | Dictionary of temp data entries. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataBuilder | The same Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary. |
WithEntries(Object)
Adds temp data entries to the built Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.
Declaration
IAndTempDataBuilder WithEntries(object entries)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entries | Anonymous object of temp data entries. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataBuilder | The same Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary. |
WithEntry(String, Object)
Adds temp data entry to the built Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.
Declaration
IAndTempDataBuilder WithEntry(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of the temp data entry. |
System.Object | value | Value of the temp data entry. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataBuilder | The same Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary. |