Compartir a través de


Declarations.IsPerfectMatch Method

Determines whether the specified text matches all of the specified item.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overridable Function IsPerfectMatch ( _
    textSoFar As String, _
    index As Integer _
) As Boolean
public virtual bool IsPerfectMatch(
    string textSoFar,
    int index
)
public:
virtual bool IsPerfectMatch(
    String^ textSoFar, 
    int index
)
abstract IsPerfectMatch : 
        textSoFar:string * 
        index:int -> bool  
override IsPerfectMatch : 
        textSoFar:string * 
        index:int -> bool
public function IsPerfectMatch(
    textSoFar : String, 
    index : int
) : boolean

Parameters

  • textSoFar
    Type: String

    [in] A string containing the text typed by the user and to be matched.

  • index
    Type: Int32

    [in] The index of the item to compare against.

Return Value

Type: Boolean
Returns true if the specified text is at the beginning of the specified item; otherwise, returns false.

.NET Framework Security

See Also

Reference

Declarations Class

Microsoft.VisualStudio.Package Namespace