共用方式為


SPFolder.GetProperty Method

Gets the value of the element with the specified key from the metadata for the folder.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetProperty ( _
    key As Object _
) As Object
'Usage
Dim instance As SPFolder
Dim key As Object
Dim returnValue As Object

returnValue = instance.GetProperty(key)
public Object GetProperty(
    Object key
)

Parameters

  • key
    Type: System.Object

    The key of the element for which to return a value.

Return Value

Type: System.Object
The value that corresponds to the specified key.

Remarks

This method gets the value of the element specified by the key parameter from the metadata collection of the folder, which is contained in the Properties property.

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace