SaveMetadata Method
Definition
SaveMetadata<T>(T, string, object)
Add or update a set of model to the request.
public static T SaveMetadata<T>(this T request, string key, object value) where T : IMetadata
Parameters
requestTThe IMetadata to extend.
keystringThe key of the element to add or update.
valueobjectThe value of the element to add or update.
Returns
- T
A reference to
requestafter the operation has completed.
Type Parameters
TThe model that implements the IMetadata interface.
Exceptions
- ArgumentNullException
requestcannot be null -or-keycannot be null.