Share via


DataConnectionFileCollection.Add Method (String, Boolean, Boolean, String)

Adds a data connection file to the collection with a series of parameters describing the connection.

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

Syntax

'Declaration
Public Function Add ( _
    fullFileName As String, _
    webAccessible As Boolean, _
    overwrite As Boolean, _
    category As String _
) As Boolean
'Usage
Dim instance As DataConnectionFileCollection
Dim fullFileName As String
Dim webAccessible As Boolean
Dim overwrite As Boolean
Dim category As String
Dim returnValue As Boolean

returnValue = instance.Add(fullFileName, _
    webAccessible, overwrite, category)
public bool Add(
    string fullFileName,
    bool webAccessible,
    bool overwrite,
    string category
)

Parameters

  • fullFileName
    Type: System.String
    The full path and file name of the Universal Data Connection (UDC) file, including the .udcx extension.
  • webAccessible
    Type: System.Boolean
    A boolean value indicating whether Microsoft InfoPath 2010 clients will be able to use the UDC file.
  • overwrite
    Type: System.Boolean
    A boolean value indicating whether to overwrite an existing UDC file with the same name.
  • category
    Type: System.String
    An optional string value containing the category to assign to the UDC file.

Return Value

Type: System.Boolean
A boolean value indicating whether the operation was successful.

See Also

Reference

DataConnectionFileCollection Class

DataConnectionFileCollection Members

Add Overload

Microsoft.Office.InfoPath.Server.Administration Namespace