Share via


QueryService Class

To access the Search Query Web service and its methods, use the websvcSearch class instead.

Inheritance Hierarchy

System.Object
  System.ComponentModel.MarshalByValueComponent
    System.Web.Services.WebService
      Microsoft.Office.Server.Search.Query.QueryService

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

Syntax

'Declaration
<WebServiceBindingAttribute(ConformsTo := WsiProfiles.BasicProfile1_1)> _
<WebServiceAttribute(Namespace := "https://microsoft.com/webservices/OfficeServer/QueryService",  _
    Description := "Microsoft Search Server 2010 Query Web Service")> _
<ScriptServiceAttribute> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class QueryService _
    Inherits WebService
'Usage
Dim instance As QueryService
[WebServiceBindingAttribute(ConformsTo = WsiProfiles.BasicProfile1_1)]
[WebServiceAttribute(Namespace = "https://microsoft.com/webservices/OfficeServer/QueryService", 
    Description = "Microsoft Search Server 2010 Query Web Service")]
[ScriptServiceAttribute]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class QueryService : WebService

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.

See Also

Reference

QueryService Members

Microsoft.Office.Server.Search.Query Namespace