AttributeCallbackBuilder.AddCustomAttributes Method (String, Attribute)
Adds attributes to the member with the specified name.
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
public void AddCustomAttributes( string memberName, params Attribute attributes )
The following code example shows how to add an attribute to a member by using the AttributeCallbackBuilder class. This code example is part of a larger example provided for the AttributeCallbackBuilder class.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.