FilterNameIgnoreCase Field

Type.FilterNameIgnoreCase Field


Represents the case-insensitive member filter used on names. This field is read-only.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static readonly MemberFilter FilterNameIgnoreCase

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 is assigned a string value, which may include a trailing "*" wildcard character. Only wildcard end string matching is supported.

For example, the Object may be assigned the value "ByTe*". In that case, when the FilterName delegate is invoked, it will return true only if the method represented by the MemberInfo object has a name that begins with "byte", ignoring case.

The following example gets the MemberFilter delegate, passes it as a parameter to the FindMembers method, and displays the methods and their attributes of the String class that begin with the letter "c", disregarding the case.

Snippet section 1 of code snippet {"project_id":"3fedad16-eaf1-41a6-8f96-0c1949c68f32","entity_id":"0be7f97a-1c6f-41a9-8b33-63490579b07e","entity_type":"CodeSnippet","locale":"en-US"} in source file ({"filename":"/CS/discoveryclientprotocol_download.cs","blob_type":"Source","blob_id":"-002fcs-002fdiscoveryclientprotocol-005fdownload-002ecs","blob_revision":1}) overlaps with other snippet sections. Ensure the tags are placed correctly.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft