IsUnderRevisionControl Property

Microsoft FrontPage Visual Basic

True if source control is used on files in the specified Web site. Read-only Boolean.

expression.IsUnderRevisionControl

expression    Required. An expression that returns a WebEx object.

Remarks

You must have a source control project created through Microsoft Visual SourceSafe or Microsoft Office in order to use revision control. For information about source control projects, refer to Managing Source Control Projects.

Example

The following example creates a source control project and then, in the second procedure, checks the state of the IsUnderRevisionControl property.

Private Sub SourceControlProject()
    Dim myWeb As WebEx

    Set myWeb = ActiveWeb

    If Not (myWeb.IsUnderRevisionControl) Then
        myWeb.RevisionControlProject = _
            "<FrontPage-based Locking>"
    End If
End Sub

Private Sub GetRevisionState()
    Dim myWeb As WebEx
    Dim myRevCtrlProj As String
    Dim myIsRevCtrl As Boolean

    Set myWeb = ActiveWeb

    With myWeb
        myRevCtrlProj = .RevisionControlProject
        myIsUnderRevCtrl = .IsUnderRevisionControl 
    End With
End Sub