Ensure_Column_Description

Language:
PowerShell
Keywords:
SharePoint
Code Snippet

Function Ensure_Column_Description( [Microsoft.SharePoint.SPField]$tField
                                  , $tDescription) {
    if ($tField.Description -ne $tDescription) {
        $tField.Description = $tDescription
        
        Write-Output([System.String]::Format("Column [{0}] : Setting Description [{1}]", $tField.Title, $tDescription))
        $tField.Update()
    }
} # Function Ensure_Column_Description(...)


Created 2011-10-13
comments powered by Disqus
Login