Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# ChildDocument Constructor (String, TypeNamespace, String, String)

Valued constructor.

public ChildDocument(
string location,
TypeNamespace typeNameSpace,
string typeID,
string displayName
);

#### Parameters

location
  Location of the child document.
typeNameSpace
  TypeNameSpace of the child document, e.g. TypeNamespace.MIME
typeID
  TypeID of the child document For TypeNamespace.FILE, this is the name of the document with the extension. For TypeNameSpace.MIME, this is the mime type, e.g. text/html
displayName
  display name of the child document

#### Remarks

The location is the string used to retrieve the document in `IDocumentProvider.AttachToDocument`. For example, this could be a UNC path for a file crawler, or a concatenation of database, table, and primary key for a database crawler, separated by a developer-chosen delimiter. The location string would then be parsed as required in the developer's implementation of the `IDocumentProvider.AttachToDocument` method. Keep in mind that `IDocumentProvider` does not have access to `CrawlInfo`, so any crawler values required in `IDocumentProvider.AttachToDocument` should be added to the location string to be parsed in that method.

#### See Also

ChildDocument Class | Plumtree.Remote.Crawler Namespace | ChildDocument Constructor Overload List | AttachToDocument