Share via


WebPartAdder.Selector.PositivelyMatches method

Determines whether the current WebPartAdder.Selector positively matches the specified WebPartAdder.Selector.

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

Syntax

'Declaration
Public Function PositivelyMatches ( _
    other As WebPartAdder.Selector _
) As Boolean
'Usage
Dim instance As WebPartAdder.Selector
Dim other As WebPartAdder.Selector
Dim returnValue As Boolean

returnValue = instance.PositivelyMatches(other)
public bool PositivelyMatches(
    WebPartAdder.Selector other
)

Parameters

Return value

Type: System.Boolean
true if the current WebPartAdder.Selector positively matches other; otherwise, false.

Remarks

A WebPartAdder.Selector A positively matches a WebPartAdder.Selector B if they match the following conditions: !B.Negated && A.Major == B.Major && (A.Minor == null || A.Minor == B.Minor).

See also

Reference

WebPartAdder.Selector structure

WebPartAdder.Selector members

Microsoft.SharePoint.WebPartPages namespace