MetadataDefaults class
SharePoint 2013
Provides a way to set and get default values for fields based on where the document is added.
Namespace:
Microsoft.Office.DocumentManagement
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
This class is a wrapper around a settings file stored in a document library's Forms folder.
The settings file contains default values for fields based on where the document is added. This class provides methods to get, set, and remove these defaults and apply them to a SPListItem object.
To create a MetadataDefaults object for a list, either create a new MetadataDefaults object by passing an SPList object, or by passing a server-relative list URL and an SPWeb object.
This class is only available for use on SPDocumentLibrary objects.