Share via


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

  • maskOn
    Type: System.Boolean

    true 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.

See also

Reference

SPCopyFieldMask class

SPCopyFieldMask members

Microsoft.SharePoint namespace