Method AddAttribute
AddAttribute<T>(T, FunctionAttributeIndex, AttributeValue)
Adds a single AttributeValue to an IFunctionAttributeAccessor
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeValue attrib) where T : notnull, IFunctionAttributeAccessor
Parameters
self
TContainer to add the attribute to
index
FunctionAttributeIndexFunctionAttributeIndex to add the attribute to
attrib
AttributeValueAttribute to add to the container
Returns
- T
self
for fluent use
Type Parameters
T
Container type
AddAttribute<T>(T, FunctionAttributeIndex, LazyEncodedString)
Adds a single AttributeValue to an IFunctionAttributeAccessor
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, LazyEncodedString name) where T : notnull, IFunctionAttributeAccessor
Parameters
self
TAccessor to add the attribute to
index
FunctionAttributeIndexFunctionAttributeIndex to add the attribute to
name
LazyEncodedStringName of the attribute to add
Returns
- T
self
for fluent use
Type Parameters
T
Accessor type