This method initializes the VC class with information such as: VC name, proxy, and credentials.
All calls using VC or Scope will use this information when communicating with
Cosmos. This method can be called multiple times to change the information.
Namespace: VcClientAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public static void Setup( string vcName, string proxy, string userName, SecureString password ) |
Visual Basic |
---|
Public Shared Sub Setup ( _ vcName As String, _ proxy As String, _ userName As String, _ password As SecureString _ ) |
Visual C++ |
---|
public: static void Setup( String^ vcName, String^ proxy, String^ userName, SecureString^ password ) |
Parameters
- vcName
- Type: String
VC name in "http://" or "vc://" format.
- proxy
- Type: String
The proxy server. Specify this if you explicitly need to connect using a proxy server. If no proxy should be used, then specify NoProxy. If the default proxy set in Internet Explorer needs to be used, specify null.
- userName
- Type: String
The username in Domain\username format.
- password
- Type: SecureString
Password of the user.
Examples
In the following example, the specified user credentials will be used. Since the VC name has been specified, it will
be possible to use relative paths when using other VC methods.
CopyC#
VC.Setup("http://cosmos04.osdinfra.net/cosmos/MyVc", null, "PHX\\Johndoe", "password");