AttributeCallbackBuilder.AddCustomAttributes Method (String, array<Attribute[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds the contents of the provided attributes to the attribute table that created this builder.
Namespace: System.Activities.Design.Metadata
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Sub AddCustomAttributes ( _
memberName As String, _
ParamArray attributes As Attribute() _
)
'Usage
Dim instance As AttributeCallbackBuilder
Dim memberName As String
Dim attributes As Attribute()
instance.AddCustomAttributes(memberName, _
attributes)
public void AddCustomAttributes(
string memberName,
params Attribute[] attributes
)
public:
void AddCustomAttributes(
String^ memberName,
... array<Attribute^>^ attributes
)
public function AddCustomAttributes(
memberName : String,
... attributes : Attribute[]
)
member AddCustomAttributes :
memberName:string *
attributes:Attribute[] -> unit
Parameters
- memberName
Type: System.String
The name of the member to which the attributes are added.
- attributes
Type: array<System.Attribute[]
The attributes that are added to the table.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | memberName or attributes is nulla null reference (Nothing in Visual Basic). |
Remarks
If an attribute conflicts with another attribute already included in the table, the last attribute added replaces previous attributes.
Attributes can be added only to the type specified by CallbackType.
.NET Framework Security
- 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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
See Also
Reference
AttributeCallbackBuilder Class