IKnowledgeContentClass Interface
The IKnowledgeContentClass interface defines the methods and properties of, and is implemented by, the KnowledgeContentClass object.
The KnowledgeContentClass object provides a mechanism for identifying and defining the intended purpose of documents stored in SharePoint Portal Server. The KnowledgeContentClass object****corresponds to a document profile in the user interface.
Each KnowledgeContentClass object is associated with a list of properties, but also inherits the properties of the KnowledgeContentClass object it extends. The FullPropertyList property on the KnowledgeContentClass object exposes all of the properties that are available on a KnowledgeContentClass object.
Extends
IKnowledgeMessage interface
Properties
The following table shows the properties of the IKnowledgeContentClass interface, the type of each property, and a brief description of each. All properties are read/write, except where noted.
Name | Type | Description |
---|---|---|
CanHaveChildren | [Visual Basic]Boolean [C++]VARIANT_BOOL |
Flag that indicates whether this object can be extended. Default value is VARIANT_TRUE. |
ClosedExpectedContentClass | Not supported. | |
ClosedPropertyList | [Visual Basic]Boolean [C++]VARIANT_BOOL |
Flag that indicates whether new KnowledgePropertyDef objects can be added to this object. |
CodeBase | Not supported. | |
COMClassId | Not supported. | |
COMProgId | 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. |
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. |
DisplayContext | [Visual Basic]Long [C++]LONG |
Visibility of the content class in the user interface. |
DisplayName | [Visual Basic]String [C++]BSTR |
Name that is displayed for this object. This is a read-only property inherited from the KnowledgeItem object. |
Element | [Visual Basic]Variant [C++]VARIANT |
Property definitions or property overrides for this content class. |
ExpectedContentClass | Not supported. | |
Extends | [Visual Basic]Variant [C++]VARIANT |
Name of the parent of this 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. |
FullPropertyList | [Visual Basic]Variant [C++]VARIANT |
Full list of property definitions and property overrides for this content class. This is a read-only property. |
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. |
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. |
Name | [Visual Basic]String [C++]BSTR |
Name of this object. |
Property | [Visual Basic]Variant [C++]VARIANT |
Value of a specified property. This property is inherited from the KnowledgeItem object. |
Title | [Visual Basic]String [C++]BSTR |
Short string that identifies the object. This property is inherited from the KnowledgeItem object. |
Version | Not supported. |
Methods
The following table shows the methods of the IKnowledgeContentClass interface, and a brief description of each.
Name | Description |
---|---|
AddPropertyDef | Not supported. |
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. |
PropertyDef | Not supported. |
RemovePropertyDef | Not supported. |
Remarks
The KnowledgeContentClass object defines a document through the ContentClassObject property of the KnowledgeDocument object.
Each KnowledgeContentClass object specifies one or more KnowledgePropertyDef objects. Each KnowledgePropertyDef object defines a property, known as metadata, belonging to the content class specified by the ContentClass property of the KnowledgeContentClass object.
To create a functional content class, set the PKMCDO.cdostrURI_PropertyOrder property. This property is not part of the interface itself. To set the property order, use the Property property of the KnowledgeContentClass object and pass the argument ("urn:schemas-microsoft-com:publishing:propertyorder")=Array. The array contains the desired properties.
Always create the content class in the system/schema directory under the workspace.
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