共用方式為


ClientWebPartPropertyCollection.TryGetValue method

TryGetValue

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

Syntax

'宣告
Public Function TryGetValue ( _
    propertyName As String, _
    <OutAttribute> ByRef property As ClientWebPartProperty _
) As Boolean
'用途
Dim instance As ClientWebPartPropertyCollection
Dim propertyName As String
Dim property As ClientWebPartProperty
Dim returnValue As Boolean

returnValue = instance.TryGetValue(propertyName, _
    property)
public bool TryGetValue(
    string propertyName,
    out ClientWebPartProperty property
)

參數

傳回值

Type: System.Boolean
如果找到屬性,則為 true。

請參閱

參照

ClientWebPartPropertyCollection class

ClientWebPartPropertyCollection members

Microsoft.SharePoint.WebPartPages namespace