SPWeb.DeleteProperty Method
Deletes a property 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 Sub DeleteProperty ( _
key As Object _
)
'Usage
Dim instance As SPWeb
Dim key As Object
instance.DeleteProperty(key)
public void DeleteProperty(
Object key
)
Parameters
key
Type: System.ObjectThe property key to delete.
Remarks
This method deletes a property from the AllProperties property that is a key/value pair.