NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDelegator.GetCustomAttributes ()

Returns an instance of each custom attribute defined on the given TypeDelegator.

[Visual Basic]
Overloads Overrides Public Function GetCustomAttributes() As Object ()
[C#]
public override object[] GetCustomAttributes();
[C++]
public: override Object* GetCustomAttributes() [];
[JScript]
public override function GetCustomAttributes() : Object[];

Return Value

Returns an array of all the custom attributes defined on this TypeDelegator.

Exceptions

Exception Type Condition
TypeLoadException if the custom attribute type can not be loaded.

Remarks

Returns an empty array if non-custom attributes exists on this the given element. Ignores any attributes that don't inherit from Attribute. If a type is specified, the array returned must be an array of that type.

See Also

TypeDelegator Class | TypeDelegator Members | System.Reflection Namespace | TypeDelegator.GetCustomAttributes Overload List | Attribute