Share via


IsRoot Property

True if the specified Web folder is the root folder in the Web site. Read-only Boolean.

expression.IsRoot

*expression   * Required. An expression that returns a WebFolder object.

Example

The following example retrieves the setting of the IsRoot property for a WebFolder object.

Private Sub CheckExecutable()
    Dim myFolder As WebFolder
    Dim myIsRoot As Boolean

    Set myFolder = ActiveWeb.RootFolder.Folders("images")
    myIsRoot = myFolder.IsRoot

End Sub

Applies to | WebFolder Object