This documentation is archived and is not being maintained.

Match Methods

The methods of the Match class are listed here. For a complete list of Match class members, see the Match Members topic.

Public Methods

public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodNextMatch

Supported by the .NET Compact Framework.

Returns a new Match with the results for the next match, starting at the position at which the last match ended (at the character beyond the last matched character).
public methodResult

Supported by the .NET Compact Framework.

Returns the expansion of the passed replacement pattern. For example, if the replacement pattern is $1$2, Result returns the concatenation of Groups[1].Value and Groups[2].Value (Groups(1).Value and Groups(2).Value in Visual Basic).
public methodstatic (Shared in Visual Basic)Synchronized

Supported by the .NET Compact Framework.

Returns a Match instance equivalent to the one supplied that is suitable to share between multiple threads.
public methodToString (inherited from Capture)

Supported by the .NET Compact Framework.

Overridden. Gets the captured substring from the input string.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Match Class | System.Text.RegularExpressions Namespace

Show: