Upravit

Sdílet prostřednictvím


SharePointListRWQueryConnection.ListId Property

Definition

Gets or sets the list ID of the SharePoint list associated with the SharePointListRWQueryConnection object.

public:
 abstract property System::String ^ ListId { System::String ^ get(); void set(System::String ^ value); };
public abstract string ListId { get; set; }
member this.ListId : string with get, set
Public MustOverride Property ListId As String

Property Value

The GUID that identifies the SharePoint list.

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()

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.

Applies to