MarkLogic XCC/.Net Library

ContentSourceFactory.NewContentSource Method (String, Int32)

Return a ContentSource object that will serve as the source of connections to the server on the given host and port, with no default login credentials. Invoking newSession() on the returned ContentSource object, without providing a user name/password, will throw an IllegalStateException.

[Visual Basic]
Overloads Public Shared Function NewContentSource( _
   ByVal host As String, _
   ByVal port As Integer _
) As ContentSource
[C#]
public static ContentSource NewContentSource(
   string host,
   int port
);

Parameters

host
The name or dotted-quad IP address of the server host.
port
The port on the host to connect to.

Return Value

A ContentSource instance representing the content source.

See Also

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