IKnowledgeFolder Interface

The IKnowledgeFolder interface defines the methods and properties of, and is implemented by, the KnowledgeFolder object.

The KnowledgeFolder object represents a SharePoint Portal Server knowledge folder. All SharePoint Portal Server documents are stored in a set of hierarchical folders that operate similarly to file-system directories. Some folders can contain items, such as property definitions and dictionaries, in addition to documents.

A KnowledgeWorkspace object contains the root knowledge folder.

Extends

IKnowledgeItem interface

Properties

The following table shows the properties of the IKnowledgeFolder interface the type of each property, and brief descriptions for each. All properties are read/write, except where noted.

Name Type Description
Approvers

[Visual Basic]Variant

[C++]VARIANT

List of approvers for this folder. Only applicable to enhanced folders.
Authors

[Visual Basic]Variant

[C++]VARIANT

List of authors for this folder. Only applicable to enhanced folders.
ChildAutoVersioning   Not supported.
ChildCount

[Visual Basic]Long

[C++]LONG

Number of objects, including subfolders, contained in the folder. This is a read-only property.
ChildVersioning   Not supported.
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.
Coordinators

[Visual Basic]Variant

[C++]VARIANT

List of coordinators for this folder. Only applicable to enhanced folders.
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.
DefaultContentClass

[Visual Basic]String

[C++]BSTR

Default content class for new items that are created in the folder.
DefaultDocument

[Visual Basic]String

[C++]BSTR

Default item in the folder.
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.
ExpectedContentClass

[Visual Basic]Variant

[C++]VARIANT

Expected content classes for items in the folder.
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.
FolderPolicy   Not supported.
GetLastModified

[Visual Basic]Date

[C++]Date

Date and time in Greenwich mean time (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.
HasSubs

[Visual Basic]Boolean

[C++]VARIANT_BOOL

Flag that indicates the presence of one or more subfolders. This is a read-only property.
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.
IsHidden

[Visual Basic]Boolean

[C++]VARIANT_BOOL

Flag that indicates whether the item is hidden. This property is inherited from the KnowledgeItem object.
Items

[Visual Basic] _Recordset

[C++]_Recordset

Returns an ActiveX® Data Objects (ADO) recordset that contains the items in the folder. This is a read-only property.
ObjectCount

[Visual Basic]Long

[C++]LONG

Number of items, excluding subfolders, in a folder. This includes hidden objects. This is a read-only property.
ParentName   Not supported.
ProfileForm   Not supported.
PromptToAuthenticate

[Visual Basic]Boolean

[C++]VARIANT_BOOL

Flag that indicates whether to show an authentication dialog box when access fails. This property is inherited from the KnowledgeItem object.
Property

[Visual Basic]Variant

[C++]VARIANT

Value of a specified property. This property is inherited from the KnowledgeItem object.
PublishingModel

[Visual Basic]String

[C++]BSTR

Name of the publishing model associated with this folder.
Readers

[Visual Basic]Variant

[C++]VARIANT

List of readers for this folder. Only applicable to enhanced folders.
RestrictedToExpectedContentClass   Not supported.
RolesAreInherited

[Visual Basic]Boolean

[C++]VARIANT_BOOL

Flag that indicates whether the folder inherits role settings from the parent folder.
Subfolders

[Visual Basic] _Recordset

[C++] _Recordset

Returns an ActiveX® Data Objects (ADO) recordset that contains the subfolders in the folder. This is a read-only property.
TargetWorkspace   Not supported.
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.
Workspace

[Visual Basic]KnowledgeWorkspace

[C++]IknowledgeWorkspace

KnowledgeWorkspace object that contains the folder. This is a read-only property.
WorkflowDefinition   Not supported.
Methods

The following table shows the methods of the IKnowledgeFolder interface, with brief descriptions of each.

Name Description
Copy Copies the object to a new location. This method is inherited from the KnowledgeItem object.
Delete Deletes the object or its specified child objects. This method is inherited from the KnowledgeItem object.
ForceRoleInheritance Forces the inheritance of roles from the folder onto the children of the folder.
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

Applications running on Clients with a Microsoft Windows 2000 operating system can use the Approvers, Authors, Coordinators, and Readers properties. Applications running on clients with a Microsoft Windows 98 or Microsoft Windows NT 4.0 operating system cannot use the Approvers, Authors, Coordinators, and Readers properties.

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

Addressing by Using URLs

Binding to Items Stored in SharePoint Portal Server

SharePoint Portal Server Code Practices

Using the Document Management Object Model