Setup method allows the user to associate a VC name, proxy, and username with the VC and SCOPE static class. The settings will be used for all the future references to Scope and VC, unless it's modified. In case, only one of the parameters needs to be set, use null for other values. Also, note that everytime Setup is used, the previous setup will be overwritten.

Examples

Here are some of the usages of this function. In the following example, the VC and proxy are set. Note that,
CopyC#
VC.Setup("vc://cotest1/cosmosAdmin", null, "http://itgproxy");
In the following example, only the username is set.
CopyC#
VC.Setup(null, "PHX\Johndoe", null);

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

Syntax

C#
public delegate void Setup(
	string vcName,
	string proxy,
	string userName
)
Visual Basic
Public Delegate Sub Setup ( _
	vcName As String, _
	proxy As String, _
	userName As String _
)
Visual C++
public delegate void Setup(
	String^ vcName, 
	String^ proxy, 
	String^ userName
)

Parameters

vcName
Type: String
VC name in "http://" or "vc://" format.
proxy
Type: String
The proxy value to be used when communicating with the VC. If a request is being submitted from REDMOND domain to PHX domain, the proxy will be automatically set to http://itgproxy
userName
Type: String
The username in Domain\username format. Also, this user name needs to be encoded first with VC.Encode function.

See Also