共用方式為


WebPartAdder.Selector.PositivelyMatches method

判斷目前的WebPartAdder.Selector是否確實符合指定的WebPartAdder.Selector

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

Syntax

'宣告
Public Function PositivelyMatches ( _
    other As WebPartAdder.Selector _
) As Boolean
'用途
Dim instance As WebPartAdder.Selector
Dim other As WebPartAdder.Selector
Dim returnValue As Boolean

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

參數

傳回值

Type: System.Boolean
true如果目前的WebPartAdder.Selector確實符合其他;否則, false。

備註

WebPartAdder.Selector A 確實符合WebPartAdder.Selector B,如果符合下列條件:!B.Negated & & A.Major = = B.Major & & (A.Minor = = null | |A.Minor = = B.Minor)。

請參閱

參照

WebPartAdder.Selector structure

WebPartAdder.Selector members

Microsoft.SharePoint.WebPartPages namespace