Compartilhar via


SharePointListRWQueryConnection.ListId Propriedade

Definição

Obtém ou define a ID da lista do SharePoint associada ao SharePointListRWQueryConnection objeto.

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

Valor da propriedade

O GUID que identifica a lista do SharePoint.

Exemplos

O exemplo de código a seguir define uma variável de cadeia de caracteres para o valor retornado pela ListId propriedade.

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

Comentários

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.

Aplica-se a