MarkLogic XCC/.Net Library

ContentSourceFactory.NewContentSource Method (Uri)

Return a ContentSource object that will serve as the source of connections to the server specified by the given URI. The format of the URI is:

xcc://user:password@host:port/contentbase

For example:

xcc://joe:hush@myserver:8003/production

The contentbase id is optional. If not specified the default database for the XDBC server configuration will be used.

The only supported connection scheme is currently "xcc" ("xdbc" is an alias), but others may be added in the future.

[Visual Basic]
Overloads Public Shared Function NewContentSource( _
   ByVal uri As Uri _
) As ContentSource
[C#]
public static ContentSource NewContentSource(
   Uri uri
);

Parameters

uri
A URI instance which encodes the connection scheme, host, port and optional user and password.

Return Value

A ContentSource instance representing the ContentSource.

See Also

ContentSourceFactory Class | Marklogic.Xcc Namespace | ContentSourceFactory.NewContentSource Overload List |