﻿using System;
using System.Runtime.InteropServices;

namespace Examples
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            RevisionManager.Application application = null;
            RevisionManager.Insight insight = null;

            try
            {
                application = new RevisionManager.Application();
                insight = (RevisionManager.Insight)application.Insight;

                var FolderUrl = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit";
                bool bFolderExists = false;

                insight.FolderExists(FolderUrl, out bFolderExists);

                if (bFolderExists)
                {
                    // Folder exists.
                }
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    }
}