MarkLogic XCC/.Net Library |

# ContentSource.NewSession Method

Attempts to establish a Session with the default contentbase for this ContentSource. Login credentials are the defaults established when the instance was created.

#### Overload List

Attempts to establish a Session with the default contentbase for this ContentSource. Login credentials are the defaults established when the instance was created.

> Session NewSession();

Attempts to establish a Session with the specified contentbase on the server represented by this ContentSource.

> Session NewSession(string);

Attempts to establish a Session with the default contentbase for this ContentSource using the provided login credentials.

> Session NewSession(string,string);

Attempts to establish a Session with the specified contentbase on the server represented by this ContentSource, using the provided user credentials.

> Session NewSession(string,string,string);

#### See Also

ContentSource Interface | Marklogic.Xcc Namespace