CustomPropertyToolPart.ShouldAddProperty method
會指定是否應該建立指定之的PropertyInfo物件的屬性。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function ShouldAddProperty ( _
pi As PropertyInfo _
) As Boolean
'用途
Dim instance As CustomPropertyToolPart
Dim pi As PropertyInfo
Dim returnValue As Boolean
returnValue = instance.ShouldAddProperty(pi)
public bool ShouldAddProperty(
PropertyInfo pi
)
參數
pi
Type: System.Reflection.PropertyInfoPropertyInfo 物件。
傳回值
Type: System.Boolean
true pi參數所指定的物件新增至屬性 ; 如果否則,請false。