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!

Type.FilterAttribute

Represents the member filter used on attributes.

[Visual Basic]
Public Shared ReadOnly FilterAttribute As MemberFilter
[C#]
public static readonly MemberFilter FilterAttribute;
[C++]
public: static readonly MemberFilter* FilterAttribute;
[JScript]
public static var FilterAttribute : MemberFilter;

Remarks

This field holds a reference to the delegate used by the FindMembers method. The method encapsulated by this delegate takes two parameters: the first is a MemberInfo object and the second is an Object. The method determines whether the MemberInfo object matches the criteria specified by the Object. The Object may be assigned the value of any one of the fields on the classes FieldAttributes, MethodAttributes, or MethodImplAttributes.

For example, the Object may be assigned the value of a field from FieldAttributes such as Public. In that case, when the FilterAttribute delegate is invoked, it will return true only if the method represented by the MemberInfo object is decorated with the public field attribute in metadata.

See the example in the FindMembers to learn how to use FilterAttribute.

See Also

Type Class | Type Members | System Namespace | FindMembers