Click or drag to resize
SearchDocumentExtensionsInitialize Method (SearchDocument, ISearchIndexInfo, String, String, DateTime)
Initializes search document from given parameters.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public static void Initialize(
	this SearchDocument document,
	ISearchIndexInfo index,
	string type,
	string id,
	DateTime created
)

Parameters

document
Type: CMS.DataEngineSearchDocument
Document to initialize.
index
Type: CMS.DataEngineISearchIndexInfo
Index the document belongs to
type
Type: SystemString
Type of document
id
Type: SystemString
ID value
created
Type: SystemDateTime
Document created

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SearchDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also