SharePointListRWQueryConnection.ListId 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置与 对象关联的 SharePoint 列表的列表 SharePointListRWQueryConnection ID。
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
属性值
标识 SharePoint 列表的 GUID。
示例
下面的代码示例将字符串变量设置为 属性 ListId 返回的值。
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()
注解
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
可以通过 Microsoft InfoPath Filler 或 Web 浏览器内打开的表单中运行的代码访问此类型或成员。