Given a virtual cluster path in http:// format, this function will return the virtual cluster's path in vc:// format. Please see http://sharepoint/sites/cosmos/Cosmos%20User%20Documentation/Connect%20to%20Cosmos.aspx for a list of possible clusters.

Namespace: VcClient
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public static string HttpToVcPath(
	string httpPath
)
Visual Basic
Public Shared Function HttpToVcPath ( _
	httpPath As String _
) As String
Visual C++
public:
static String^ HttpToVcPath(
	String^ httpPath
)

Parameters

httpPath
Type: String
Name of the virtual cluster in http:// format

Return Value

Name of the virtual cluster in vc:// format

Examples

CopyC#
using System;
using VcClient;

namespace VcAgent
{
    class Program
    {
        static void Main()
        {
            //Use the logged in user account
            VC.SetDefaultCredentials();
            string vcPath = VC.HttpToVcPath("http://portal.cosmos02-prod-co1.search.live.net:88/cosmos/cosmosadmin/my/sample.in");
            Console.WriteLine("VC Path: "+ vcPath);
        }
    }
}

See Also