WebPartAdder.Selector Structure

Determines whether a Web Part in the site gallery will be included in the list of Web-Parts that are displayed by the WebPartAdder control.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Structure Selector
'Usage
Dim instance As WebPartAdder.Selector
public struct Selector

Remarks

A WebPartAdder.Selector is composed of a required Major portion, and an optional Minor portion. The required Major portion is typically used to select the site template that contains the Web Part displayed by the WebPartAdder. The optional Minor portion is typically used to select a particular page or Web Part zone within that site template. Selectors can also be negated to indicate that a Web Part will not be included in the list of Web Parts displayed in the WebPartAdder.

Selectors can also be represented in a selector string form. The format of a selector string is [!]MAJOR[:MINOR], where MAJOR and MINOR are arbitrary string lengths. The strings cannot contain exclamation points, commas, or colons.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

WebPartAdder.Selector Members

Microsoft.SharePoint.WebPartPages Namespace