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 (Type)

Returns an instance of each custom attribute defined on the given TypeDelegator that meet the Type criteria.

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

Parameters

attributeType
The type of the attribute to be returned.

Return Value

Returns an array of all the custom attributes of type attributeType 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