Share via


LanguageResourcePhraseList.AddPhrase Method (String, String)

Adds a new language resource phrase to the list.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function AddPhrase ( _
    strPhrase As String, _
    strMapping As String _
) As LanguageResourcePhrase
'Usage
Dim instance As LanguageResourcePhraseList
Dim strPhrase As String
Dim strMapping As String
Dim returnValue As LanguageResourcePhrase

returnValue = instance.AddPhrase(strPhrase, _
    strMapping)
public LanguageResourcePhrase AddPhrase(
    string strPhrase,
    string strMapping
)

Parameters

  • strMapping
    Type: System.String

    The language resource phrase mapping.

Return Value

Type: Microsoft.Office.Server.Search.Administration.LanguageResourcePhrase
The language resource phrase added to the list.

Remarks

If the phrase already exists in the list, it will not be added.

See Also

Reference

LanguageResourcePhraseList Class

LanguageResourcePhraseList Members

AddPhrase Overload

Microsoft.Office.Server.Search.Administration Namespace