Compartilhar via


MetadataDefaults.SetFieldDefault Method

Include Protected Members
Include Inherited Members

Sets a default for a field at a location

Overload List

  Name Description
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.

Top

Remarks

This method sets a default value on a field to apply to documents added to the specified location. The value should be appropriate for the type of field the default is being set on (that is, a DateTime string for a SharePointSPFieldDateTime object). The method returns true if the value was set on the field at the specified location; otherwise, false.

See Also

Reference

MetadataDefaults Class

MetadataDefaults Members

Microsoft.Office.DocumentManagement Namespace