Export (0) Print
Expand All
Expand Minimize

ContentByQueryWebPart.ListGuid property

Gets or sets the List GUID.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string ListGuid { get; set; }

Property value

Type: System.String

The WebUrl property determines the ContentByQueryWebPart object's mode is determined by the WebUrl, ListGuid, and ListName properties.

  • If the WebUrl, ListGuid, and ListName properties are set, the mode is List.

  • If the WebUrl is set and ListGuid and ListName are empty, the mode is Web.

  • If WebUrl, ListGuid and ListName are empty, the mode is Site Collection.

  • If both ListGuid and ListName properties are set, ListGuid takes precedence.

Show:
© 2015 Microsoft