| Spring.Proxy Namespace > IProxyTypeBuilder Interface : MemberAttributes Property (IProxyTypeBuilder) |
The custom
[Visual Basic]
Overridable Property MemberAttributes As IDictionary [C#]
virtual IDictionary MemberAttributes {get; set;}
This dictionary must use simple
The key may be wildcarded using the '*' character... if so,
then those proxy members that match against the key will be
decorated with the attendant list of
'*' character as a key will result in the attendant list
of
The following code snippets show examples of how to decorate the
members of a proxied class with one or more
[C#]
// get a concrete implementation of an IProxyTypeBuilder...
IProxyTypeBuilder builder = ... ;
builder.TargetType = typeof( ... );
IDictionary memAtts = new Hashtable();
builder.MemberAttributes = memAtts;
// applies a single Attribute to all members of the proxied class...
memAtts ["*"] = new Attribute[] { new MyCustomAttribute() });
// applies a number of Attributes to all members of the proxied class...
memAtts ["*"] = new Attribute[]
{
new MyCustomAttribute(),
new AnotherAttribute(),
});
// applies a single Attribute to those members of the proxied class
// that have identifiers starting with 'Do' ...
memAtts ["Do*"] = new Attribute[] { new MyCustomAttribute() });
// applies a number of Attributes to those members of the proxied class
// that have identifiers starting with 'Do' ...
memAtts ["Do*"] = new Attribute[]
{
new MyCustomAttribute(),
new AnotherAttribute(),
});Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IProxyTypeBuilder Interface | IProxyTypeBuilder Members
© 2004-2006 Spring.NET Authors. All Rights Reserved.