Export (0) Print
Expand All

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

public struct Selector

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.

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