SharePointListRWQueryConnection.ListId Property
Gets or sets the list ID of the SharePoint list associated with the SharePointListRWQueryConnection object.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Syntax
'Declaration
Public MustOverride Property ListId As String
Get
Set
'Usage
Dim instance As SharePointListRWQueryConnection
Dim value As String
value = instance.ListId
instance.ListId = value
public abstract string ListId { get; set; }
Property Value
Type: System.String
The GUID that identifies the SharePoint list.
Remarks
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.
Examples
The following code example sets a string variable to the value returned by the ListId property.
SharePointListRWQueryConnection spConnection = (SharePointListRWQueryConnection)this.DataConnections["Contacts"];
string spListID = spConnection.ListId.ToString();
Dim spConnection As SharePointListRWQueryConnection = _
DirectCast(Me.DataConnections("Contacts"), _
SharePointListRWQueryConnection)
Dim spListID As String = _
spConnection.ListId.ToString()
See Also
Reference
SharePointListRWQueryConnection Class