ExemptUserAgent Class
Represents a user agent, commonly a search bot, which can receive InfoPath forms instead of a Web page in response to an HTTP request.
Inheritance Hierarchy
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPersistedObject
Microsoft.Office.InfoPath.Server.Administration.ExemptUserAgent
Namespace: Microsoft.Office.InfoPath.Server.Administration
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
Syntax
'Declaration
<GuidAttribute("10196e7e-2590-4862-8a40-ce64bdd5c9ff")> _
Public NotInheritable Class ExemptUserAgent _
Inherits SPPersistedObject
'Usage
Dim instance As ExemptUserAgent
[GuidAttribute("10196e7e-2590-4862-8a40-ce64bdd5c9ff")]
public sealed class ExemptUserAgent : SPPersistedObject
Remarks
The ExemptUserAgent object, if present in the ExemptUserAgentCollection collection, will allow a search bot or any other user agent to receive InfoPath forms instead of Web pages from InfoPath Forms Services. For search bots, this allows the information contained within InfoPath files to be indexed.
Examples
See the ExemptUserAgentCollection collection for an example.
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.