MarkLogic XCC/.Net Library |

# ContentSourceFactory.NewContentSource Method (ConnectionProvider, String, String, String)

Return a ContentSource object that will serve as the source of connections using the provided ConnectionProvider instance.

[Visual Basic]
Overloads Public Shared Function NewContentSource( _
ByVal provider As ConnectionProvider, _
ByVal user As String, _
ByVal password As String, _
ByVal contentbaseName As String _
) As ContentSource
[C#]
public static ContentSource NewContentSource(
ConnectionProvider provider,
string user,
string password,
string contentbaseName
);

#### Parameters

provider
  A ConnectionProvider instance. User-supplied ConnectionProvider objects are not fully supported in XCC/.Net.
user
  The default User Name to use for authentication.
password
  The default Password to use for authentication.
contentbaseName
  The ContentBase (database) on the ContentSource run queries against. Pass null to use the default configured on the server.

#### Return Value

A ContentSource instance representing the content source.

#### See Also

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