SPFile.GetProperty method

Gets the value from an item in the list of metadata for the file based on the specified key.

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

Syntax

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

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

Parameters

  • key
    Type: System.Object

    The string key of the item from which to retrieve the value.

Return value

Type: System.Object
Object
The value of the item.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace