SPCopyFieldMask.SetMask method
Sets a flag that specifies whether a field is masked so it cannot be overwritten during a copy operation. Set to true to mask the field.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub SetMask ( _
fieldName As String, _
maskOn As Boolean _
)
'Usage
Dim instance As SPCopyFieldMask
Dim fieldName As String
Dim maskOn As Boolean
instance.SetMask(fieldName, maskOn)
public void SetMask(
string fieldName,
bool maskOn
)
Parameters
fieldName
Type: System.StringThe name of the field.
maskOn
Type: System.Booleantrue to mask the field so that it is not overwritten; otherwise, false.
Remarks
This method specifies whether a field mask is used to prevent the field from being overwritten when an item is copied.