Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ContentByQueryWebPart.ListGuid Property

Gets or sets the List GUID.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
'Declaration
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property ListGuid As String
	Get
	Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As String

value = instance.ListGuid

instance.ListGuid = value

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.