Method AddAttributes
AddAttributes<T>(T, FunctionAttributeIndex, AttributeKind[])
Adds attributes to an IAttributeContainer
Declaration
public static T AddAttributes<T>([ValidatedNotNull] this T self, FunctionAttributeIndex index, params AttributeKind[] values)
where T : class, IAttributeContainer
Parameters
public static T AddAttributes<T>([ValidatedNotNull] this T self, FunctionAttributeIndex index, params AttributeKind[] values)
where T : class, IAttributeContainer
T | self | Container to add the attributes to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attributes to |
AttributeKind[] | values | Attributes to add to the container |
Returns
T |
|
Type Parameters
T | Container type |
AddAttributes<T>(T, FunctionAttributeIndex, AttributeValue[])
Adds AttributeValues to an IAttributeContainer
Declaration
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params AttributeValue[] attributes)
where T : class, IAttributeContainer
Parameters
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params AttributeValue[] attributes)
where T : class, IAttributeContainer
T | self | Container to add the attribute to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attributes to |
AttributeValue[] | attributes | Attribute to add to the container |
Returns
T |
|
Type Parameters
T | Container type |
AddAttributes<T>(T, FunctionAttributeIndex, IEnumerable<AttributeValue>)
Adds AttributeValues to an IAttributeContainer
Declaration
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IEnumerable<AttributeValue> attributes)
where T : class, IAttributeContainer
Parameters
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IEnumerable<AttributeValue> attributes)
where T : class, IAttributeContainer
T | self | Container to add the attribute to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attributes to |
IEnumerable<AttributeValue> | attributes | Attribute to add to the container |
Returns
T |
|
Type Parameters
T | Container type |
AddAttributes<T>(T, FunctionAttributeIndex, IAttributeDictionary)
Adds the attributes from and IAttributeDictionary to an IAttributeContainer
Declaration
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IAttributeDictionary attributes)
where T : class, IAttributeContainer
Parameters
public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, IAttributeDictionary attributes)
where T : class, IAttributeContainer
T | self | Container to add the attributes to |
FunctionAttributeIndex | index | FunctionAttributeIndex to add the attributes to |
IAttributeDictionary | attributes | IAttributeDictionary containing the attributes to add to the container |
Returns
T |
|
Type Parameters
T | Container type |