Partager via


ManagedPropertyFilterGenerator.GetUrl Method

Gets the URL that redirects the user to the filter results page.

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

Syntax

'Declaration
Protected Function GetUrl ( _
    fc As FilterCategory, _
    propValues As StringCollection, _
    <OutAttribute> ByRef url As String _
) As Boolean
'Usage
Dim fc As FilterCategory
Dim propValues As StringCollection
Dim url As String
Dim returnValue As Boolean

returnValue = Me.GetUrl(fc, propValues, _
    url)
protected bool GetUrl(
    FilterCategory fc,
    StringCollection propValues,
    out string url
)

Parameters

  • url
    Type: System.String

    When this method returns, contains a URL that redirects the user to the filter results page.

Return Value

Type: System.Boolean
true if the resulting URL selects the filter; false if the resulting URL clears the filter.

Remarks

If the filter string already contains the filter specified by fc and propValues, this method clears this filter; otherwise, this method appends the filter to the filter string.

See Also

Reference

ManagedPropertyFilterGenerator Class

ManagedPropertyFilterGenerator Members

Microsoft.Office.Server.Search.WebControls Namespace