MetadataDefaults.RemoveAllDefaults Method
Removes all of the default values set on the document library.
Namespace: Microsoft.Office.DocumentManagement
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Sub RemoveAllDefaults
'Usage
Dim instance As MetadataDefaults
instance.RemoveAllDefaults()
public void RemoveAllDefaults()
Examples
SPSite site = new SPSite("http://contoso"); SPWeb web = new site.OpenWeb("/"); MetadataDefaults defaults = MetadataDefaults("/Documents", web); defaults.RemoveAllDefaults(); defaults.Update();