MarkLogic XCC/.Net Library

ContentSourceFactory.NewContentSource Method (String, Int32, String, String)

Equivalent to

newContentSource (host, port, user, password, null)

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

Parameters

host
The name or dotted-quad IP address of the server host.
port
The port on the host to connect to.
user
The default User Name to use for authentication.
password
The default Password to use for authentication.

Return Value

A ContentSource instance representing the content source. the configured ContentSource implementation class cannot be instantiated.

See Also

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