SPWeb.GetProperty Method

Gets the value of a property with the specified key from the list of metadata for the website.

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 SPWeb
Dim key As Object
Dim returnValue As Object

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

Parameters

Return Value

Type: System.Object
The value of the property.

Remarks

This method retrieves the value of the specified property from the AllProperties property that is a key/value pair.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace