Gemstone Common Library
Show/Hide TOC

# FilePathConnectToNetworkShare Method

Connects to a network share with the specified user's credentials.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
C#
View Source Request Example

    public static void ConnectToNetworkShare(
    	string shareName,
    	string userName,
    	string password,
    	string domain
    )

VB
View Source Request Example

    Public Shared Sub ConnectToNetworkShare (
    	shareName As String,
    	userName As String,
    	password As String,
    	domain As String
    )

C++
View Source Request Example

    public:
    static void ConnectToNetworkShare(
    	String^ shareName,
    	String^ userName,
    	String^ password,
    	String^ domain
    )

JavaScript
View Source Request Example

    Gemstone.IO.FilePath.ConnectToNetworkShare = function(shareName, userName, password, domain);

#### Parameters

shareName String
  UNC share name to connect to.
userName String
  Username to use for connection.
password String
  Password to use for connection.
domain String
  Domain name to use for connection. Specify the computer name for local system accounts.

## See Also

#### Reference

FilePath Class
Gemstone.IO Namespace