Udostępnij za pośrednictwem


BMMatcher.Match Method (Byte[], Int32, Int32, Int32)

Tests whether the pattern is found in the search buffer between the specified positions.

Namespace: Microsoft.Web.Services3.Mime
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim data() As Byte
Dim offset As Integer
Dim count As Integer
Dim shift As Integer
Dim returnValue As Boolean
Dim bMMatcher1 As BMMatcher
returnValue = bMMatcher1.Match(data, offset, count, shift)

Syntax

'Declaration
Overloads Public Function Match( _
    ByVal data() As Byte, _
    ByVal offset As Integer, _
    ByVal count As Integer, _
    ByRef shift As Integer _
) As Boolean
public bool Match(
    byte[] data, 
    int offset, 
    int count, 
    ref int shift
);
public:
bool Match(
    array<unsigned char>^ data,
    int offset,
    int count,
    int% shift
);
public boolean Match(
    ubyte[] data, 
    int offset, 
    int count, 
    /*ref*/int shift
);
public function Match(
     data : Byte[], 
     offset : int, 
     count : int, 
     shift : int
) : Boolean;

Parameters

  • data
  • offset
  • count
  • shift

Return Value

true if a match was found, false otherwise.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

BMMatcher Class
BMMatcher Members
Microsoft.Web.Services3.Mime Namespace