共用方式為


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)
Available in Sandboxed Solutions: No

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