MetadataDefaults Members

Provides a way to set and get default values for fields based on where the document is added.

The MetadataDefaults type exposes the following members.

  Name Description
Public method MetadataDefaults(SPList) Initializes a new instance of a [T:Microsoft.Office.DocumentManagement.MetadataDefaults(Microsoft.SharePoint.SPList)] object.
Public method MetadataDefaults(String, SPWeb) Initializes a new instance of a [T:Microsoft.Office.DocumentManagement.MetadataDefaults(System.String,Microsoft.SharePoint.SPWeb)] object.
Top

  Name Description
Public method ApplyDefaults Applies default values to a SPListItem object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDefaultMetadata(SPFolder) Gets the defaults for all field that have defaults for a specified folder.
Public method GetDefaultMetadata(String) Gets the defaults for all fields in a specified SPFolder that have defaults.
Public method GetFieldDefault(SPFolder, String) Gets the default value for a specified folder and field.
Public method GetFieldDefault(String, String) Gets the default value for a specified field and folder.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveAllDefaults Removes all of the default values set on the document library.
Public method RemoveAllFieldDefaults(SPFolder) Removes all of the defaults set at a specified location.
Public method RemoveAllFieldDefaults(String) Removes all of the default values that are set at a specified location.
Public method RemoveFieldDefault(SPFolder, String) Removes the default value of a SPField object at a specified SPFolder object.
Public method RemoveFieldDefault(String, String) Removes the default value of a field from an SPFolder object.
Public method SetFieldDefault(SPFolder, String, String) Sets a default for a field at a location.
Public method SetFieldDefault(String, String, String) Sets a default value for a default field to apply to documents at a specified location.
Public method ToString (Inherited from Object.)
Public method Update Write changes to default values to the disk and adds or removes the appropriate event handlers.
Top
Show: