Edit

Share via


DAVAdapterObject Interface

Definition

Represents a connection to submit form information to a Microsoft Windows SharePoint Services server, or other servers that support DAV connections.

public interface class DAVAdapterObject : Microsoft::Office::Interop::InfoPath::DAVAdapter
[System.Runtime.InteropServices.Guid("096CD5D6-0786-11D1-95FA-0080C78EE3BB")]
public interface DAVAdapterObject : Microsoft.Office.Interop.InfoPath.DAVAdapter
type DAVAdapterObject = interface
    interface DAVAdapter
Public Interface DAVAdapterObject
Implements DAVAdapter
Derived
Attributes
Implements

Examples

In the following example, the Submit() method of the DAVAdapterObject object is invoked in the OnSubmitRequest(DocReturnEvent) event if the destination is reachable, otherwise a message box is displayed:

public void OnSubmitRequest(DocReturnEvent e)
{
 DAVAdapterObject davAdapterObj = thisXDocument.DataAdapters[0] as DAVAdapterObject;
 bool reachable = thisApplication.IsDestinationReachable("http://localhost/application");
 if (reachable)
 {
  if (davAdapterObj == null)
  {
   thisXDocument.UI.Alert("First DataAdapter does not exist or is not a DAVAdapterObject.");
   return;
  }
  davAdapterObj.Submit();
  e.ReturnStatus = true;
 }
 else
 {
  thisXDocument.UI.Alert(davAdapterObj.FolderURL + " is not reachable.");
  e.ReturnStatus = false;
 }
}

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeDAVAdapter.

Use the Item property of the DataAdaptersCollection to return a DAVAdapter object.

Properties

FileName

Gets or sets the file name that the current Microsoft Office InfoPath form will be given when the form is submitted by the DAVAdapterObject.

(Inherited from DAVAdapter)
FolderURL

Gets or sets the Uniform Resource Locator (URL) to which the form will be submitted by the DAVAdapterObject object.

(Inherited from DAVAdapter)
Name

Gets the name of a DAVAdapterObject object.

(Inherited from DAVAdapter)
QueryAllowed

Returns false, corresponding to the queryAllowed attribute in the form definition file (.xsf).

(Inherited from DAVAdapter)
SubmitAllowed

Returns true, corresponding to the submitAllowed attribute in the form definition file (.xsf).

(Inherited from DAVAdapter)

Methods

Query()

The Query method is available for the DAVAdapterObject object but, because the DAVAdapter object is available for submitting data only, the method will always generate a run-time error when it is called on that object.

(Inherited from DAVAdapter)
Submit()

Executes the submit operation on the associated adapter.

(Inherited from DAVAdapter)
SubmitData(IXMLDOMNode)

Submits the specified DOM element or DOM document to a data adapter.

(Inherited from DAVAdapter)

Applies to