Interfaccia DAVAdapterObject
Rappresenta una connessione per l'invio delle informazioni di un modulo a un server Microsoft Windows SharePoint Services o ad altri server che supportano connessioni DAV.
Spazio dei nomi: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Sintassi
<GuidAttribute("096CD5D6-0786-11D1-95FA-0080C78EE3BB")> _
<CoClassAttribute(GetType(DAVAdapterObjectClass))> _
Public Interface DAVAdapterObject
Inherits DAVAdapter
Dim instance As DAVAdapterObject
[GuidAttribute("096CD5D6-0786-11D1-95FA-0080C78EE3BB")]
[CoClassAttribute(typeof(DAVAdapterObjectClass))]
public interface DAVAdapterObject : DAVAdapter
Osservazioni
Questo tipo è un wrapper per una coclasse richiesta dal codice gestito per l'interoperabilità COM. Utilizzare questo tipo per accedere ai membri dell'interfaccia COM implementata dalla coclasse. Per informazioni sull'interfaccia COM e un collegamento alle descrizioni dei relativi membri, vedere DAVAdapter.
Utilizzare la proprietà Item dell'oggetto DataAdaptersCollection per restituire un oggetto DAVAdapter.
Esempio
Nell'esempio seguente, il metodo Submit dell'oggetto DAVAdapterObject viene richiamato nell'evento OnSubmitRequest se la destinazione è raggiungibile, altrimenti viene visualizzata una finestra di messaggio:
public void OnSubmitRequest(DocReturnEvent e)
{
DAVAdapterObject davAdapterObj = thisXDocument.DataAdapters[0] as DAVAdapterObject;
bool reachable = thisApplication.IsDestinationReachable("https://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;
}
}
Vedere anche
Riferimenti
Membri DAVAdapterObject
Spazio dei nomi Microsoft.Office.Interop.InfoPath