SPPeoplePickerSettings.OnlySearchWithinSiteCollection property

Gets or sets a Boolean value that specifies whether to search only the current site collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property OnlySearchWithinSiteCollection As Boolean
    Get
    Set
'Usage
Dim instance As SPPeoplePickerSettings
Dim value As Boolean

value = instance.OnlySearchWithinSiteCollection

instance.OnlySearchWithinSiteCollection = value
public bool OnlySearchWithinSiteCollection { get; set; }

Property value

Type: System.Boolean
true to search only the current site collection; otherwise, false.

See also

Reference

SPPeoplePickerSettings class

SPPeoplePickerSettings members

Microsoft.SharePoint.Administration namespace