MoveIfExists Property

NAnt SDK Documentation - v0.92 |

# TagTask.MoveIfExists Property

Indicates whether the tag specified in Tag should be moved to the current file revision. If the tag does not exist then it is created.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="move-if-exists", ExpandProperties:=True, ProcessXml:=True), _ BooleanValidator>
Public Property MoveIfExists As Boolean
[C#]
[TaskAttribute(Required=False, Name="move-if-exists", ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool MoveIfExists {get; set;}

#### Property Value

true if the specified tag should be moved; otherwise, false. The default is false.

#### See Also

TagTask Class | NAnt.SourceControl.Tasks Namespace