IKnowledgeCategoryFolder Interface
The IKnowledgeCategoryFolder interface defines the methods and properties of, and is implemented by, the KnowledgeCategoryFolder object.
The KnowledgeCategoryFolder object represents a category folder in the SharePoint Portal Server folder hierarchy. The KnowledgeCategoryFolder object provides mechanisms for the logical organization of content. A KnowledgeCategoryFolder object can contain only other category folders as subfolders. It cannot contain folders of other types.
Extends
IKnowledgeFolder interface
Properties
The following table shows the properties of the IKnowledgeCategoryFolder interface, the type of each property, and a brief description of each. All properties are read/write, except where noted.
Name | Type | Description |
---|---|---|
Category | [Visual Basic]String [C++]BSTR |
Category name of the folder. |
ChildCount | [Visual Basic]Long [C++]LONG |
Number of objects, including subfolders, contained in the folder. This is a read-only property inherited from the KnowledgeFolder object. |
ContentClass | [Visual Basic]String [C++]BSTR |
Uniform Resource Identifier (URI) of the content class that defines the properties for this object. This property is inherited from the KnowledgeItem object. |
ContentClassObject | [Visual Basic]KnowledgeContentClass [C++]IKnowledgeContentClass |
KnowledgeContentClass object that defines the properties for this object. This is a read-only property inherited from the KnowledgeItem object. |
CreationDate | [Visual Basic]Date [C++]Date |
Date and time in Greenwich mean time (GMT) that the item was created in the local database or file system. This is a read-only property inherited from the KnowledgeItem object. |
DataSource | [Visual Basic]IDataSource [C++]IDataSource |
IDataSource interface for this object. This is a read-only property inherited from the KnowledgeItem object. |
Description | [Visual Basic]String [C++]BSTR |
Description of this object. This property is inherited from the KnowledgeItem object. |
DisplayName | [Visual Basic]String [C++]BSTR |
Name that is displayed for this object. This is a read-only property inherited from the KnowledgeItem object. |
Fields | [Visual Basic]String [C++]BSTR |
ActiveX Data Objects (ADO) fields collection associated with this object. This is a read-only property inherited from the KnowledgeItem object. |
GetLastModified | [Visual Basic]Date [C++]Date |
Date and time in GMT that the item was last modified in the local user's database or file system. This is a read-only property inherited from the KnowledgeItem object. |
HasChildren | [Visual Basic]Boolean [C++]VARIANT_BOOL |
Flag that indicates whether any child items exist in the folder. This is a read-only property inherited from the KnowledgeFolder object. |
HasSubs | [Visual Basic]Boolean [C++]VARIANT_BOOL |
Flag that indicates the presence of one or more subfolders. This is a read-only property inherited from the KnowledgeFolder object. |
Href | [Visual Basic]String [C++]BSTR |
Absolute URL of the item. This is a read-only property inherited from the KnowledgeItem object. |
Interfaces | [Visual Basic]Variant [C++]VARIANT |
List of interfaces that this object supports. This is a read-only property inherited from the KnowledgeItem object. |
Items | [Visual Basic] _Recordset [C++]_Recordset |
Returns an ADO recordset that contains the items in the folder. This is a read-only property inherited from the KnowledgeFolder object. |
ObjectCount | [Visual Basic]Long [C++]LONG |
Number of items, excluding subfolders, in the folder. This number includes hidden objects. This is a read-only property inherited from the KnowledgeFolder object. |
Property | [Visual Basic]Variant [C++]VARIANT |
Value of a specified property. This property is inherited from the KnowledgeItem object. |
Subfolders | [Visual Basic] _Recordset [C++] _Recordset |
Returns an ADO recordset that contains the subfolders in the folder. This is a read-only property inherited from the KnowledgeFolder object. |
Title | [Visual Basic]String [C++]BSTR |
Short string that identifies the object. This property is inherited from the KnowledgeItem object. |
VisibleCount | [Visual Basic]Long [C++]LONG |
Number of visible items in the folder. This number does not include the number of subfolders. This is a read-only property inherited from the KnowledgeFolder object. |
Methods
The following table shows the methods of the IKnowledgeCategoryFolder interface, and a brief description of each.
Name | Description |
---|---|
Delete | Deletes the object or its specified child objects. This method is inherited from the KnowledgeItem object. |
GetInterface | Gets a specified interface implemented by this object. This method is inherited from the KnowledgeItem object. |
Move | Moves the object to a new location. This overwrites any previously existing object of the same name without prompting for confirmation. This method is inherited from the KnowledgeItem object. |
Remarks
As an extension of the KnowledgeFolder object, the KnowledgeCategoryFolder object deals with organizing and finding content and provides mechanisms for the logical organization of content. The KnowledgeFolder object deals with content storage and provides a mechanism for the physical organization of content. An individual document can be located in only one folder but can appear in many categories.
If the DataSource.SaveTo method is called after the KnowledgeCategoryFolder object is created, the DataSource.Save method must also be called to ensure that all of the properties of the object are saved.
Example
To see this object in a fuller context, see Document Management Object Model Sample.
Requirements
- Type Library
Microsoft PKMCDO for Microsoft Web Storage System - Inproc Server
%Program Files%\Common Files\PKMCDO.dll
Related Topics
Binding to Items Stored in SharePoint Portal Server