Method AddAttributes
AddAttributes(IAttributeContainer, params LazyEncodedString[])
Add a range of attributes to an attribute container
public static void AddAttributes(this IAttributeContainer self, params LazyEncodedString[] range)
Parameters
selfIAttributeContainerAttribute container to add attributes to
rangeLazyEncodedString[]Range of attributes to operate on
AddAttributes(IAttributeContainer, params AttributeValue[])
Add a range of attributes to an attribute container
public static void AddAttributes(this IAttributeContainer self, params AttributeValue[] range)
Parameters
selfIAttributeContainerAttribute container to add attributes to
rangeAttributeValue[]Range of attributes to operate on
AddAttributes<T>(T, FunctionAttributeIndex, IEnumerable<LazyEncodedString>)
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IEnumerable<LazyEncodedString> names) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTAccessor to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
namesIEnumerable<LazyEncodedString>Names of a attributes to add to the accessor [All must be an enum with no args OR a string attribute that accepts an empty string]
Returns
- T
selffor fluent use
Type Parameters
TAccessor type
AddAttributes<T>(T, FunctionAttributeIndex, params LazyEncodedString[])
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params LazyEncodedString[] names) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTAccessor to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
namesLazyEncodedString[]Names of a attributes to add to the accessor [All must be an enum with no args OR a string attribute that accepts an empty string]
Returns
- T
selffor fluent use
Type Parameters
TAccessor type
AddAttributes<T>(T, FunctionAttributeIndex, IEnumerable<AttributeValue>)
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IEnumerable<AttributeValue> attributes) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTContainer to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
attributesIEnumerable<AttributeValue>Attribute to add to the container
Returns
- T
selffor fluent use
Type Parameters
TContainer type
AddAttributes<T>(T, FunctionAttributeIndex, params AttributeValue[])
Adds AttributeValues to an IFunctionAttributeAccessor
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params AttributeValue[] attributes) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTContainer to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attributes to
attributesAttributeValue[]Attribute to add to the container
Returns
- T
selffor fluent use
Type Parameters
TContainer type