MarkLogic XCC/.Net Library |

# ContentLoader Class

This program accepts a server URI (in the format expected by ContentSourceFactory.newContentSource(URI)}) and one or more file pathnames of documents to load.

The main() method in this example leaves the ContentCreateOptions value set to null which will apply defaults when documents are loaded. This means that document type (XML, text() or binary()) may be determined by URI extention. If you instantiate this class from another class, you can set explicit options via the Options property before calling Load().

The main() method uses the absolute pathname of each file as its URI for loading. There is also a method provided which takes parallel arrays of URI strings and File objects.

For a list of all members of this type, see ContentLoader Members.

System.Object
Marklogic.Xcc.Examples.ContentLoader

[Visual Basic]
Public Class ContentLoader
[C#]
public class ContentLoader

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: Marklogic.Xcc.Examples

Assembly: MarklogicXcc (in MarklogicXcc.dll)

#### See Also

ContentLoader Members | Marklogic.Xcc.Examples Namespace