Compartilhar via


ExemptUserAgentCollection.Add Method (String)

Adds an ExemptUserAgent object to the ExemptUserAgentCollection collection.

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

Syntax

'Declaration
Public Sub Add ( _
    partialExemptUserAgent As String _
)
'Usage
Dim instance As ExemptUserAgentCollection
Dim partialExemptUserAgent As String

instance.Add(partialExemptUserAgent)
public void Add(
    string partialExemptUserAgent
)

Parameters

  • partialExemptUserAgent
    Type: System.String
    A string representing the user agent to receive InfoPath files instead of a Web page.

Remarks

Add a user agent to the collection in order to allow the associated search bot to index InfoPath files on the server. This method can accept an ExemptUserAgent object or a string for a partial match.

See Also

Reference

ExemptUserAgentCollection Class

ExemptUserAgentCollection Members

Add Overload

Microsoft.Office.InfoPath.Server.Administration Namespace