The properties of the ContentCreateOptions class are listed below. For a complete list of ContentCreateOptions class members, see the ContentCreateOptions Members topic.
Collections | Document collection(s) property. An array of URIs that represent collections to which the document(s) will be added when inserted. The default is null, which indicates that the document(s) should be added to the users default collections. |
Format | Document format property. If never set, the default format (NONE) indicates that the server should apply its configured rules for determining the document format. This may include choosing a format according to the suffix of the document URI. |
Language | Document language property. The language name to associate with inserted documents. A value of enindicates that the document is in English. The default is null, which indicates to use the server default. |
Locale | Document Locale property. The default is null, which indicates that the local default value is to be applied. Note that the server may not support the locale configured as the local client default. In such a case it may be necessary to explicitly set the Locale to a value recognized by the server for content insertion to succeed. |
Namespace | Document namespace property. A namespace name, which will used as the namespace associated with inserted documents. The default is null, which indicates that the default namespace should be used. |
Permissions | Document permission(s) property. Permissions (ContentPermission) to be applied when documents are inserted. The default is null, which indicates that the default permissions for the user should be applied. |
PlaceKeys | Document permission(s) property. A set of forest placement keys (forest IDs) currently to control where content will be stored. Although forest placement keys may be specified in two ways, as UInt64 or as long, they are always stored internally as UInt64 objects. If the URI of the document being inserted already exists exists in the contentbase, it will remain in the same forest. If a specified forest ID does not exist, that is an error. If more than one forest ID is given, the document will be placed in one of them at the server's discretion. |
Quality | Document quality property. The quality value that should be applied to the inserted document. |
RepairLevel | Document repair level property. The default value is DocumentRepairLevel.FULL, but this option is only applicable when the document format is DocumentFormat.XML. |
ResolveBufferSize | Document entity resolution buffer size property. This value is passed to the server and is not used directly by XCC. The default is 0, which indicates that a reasonable default should be used. The default should be appropriate for all but the most unusual of circumstances. |
ResolveEntities | Document entity resolution flag property. If true, any entity references in a document being inserted will be resolved (if possible) by XCC and sent to the server for inline expansion. If false, entities will simply be stored as text. The default is false and this flag is only meaningful when the format is DocumentFormat.XML. |
ContentCreateOptions Class | Marklogic.Xcc Namespace