Type Property

The Type property specifies the data type of the property.

Property Type As String[C++]
Get method:
HRESULT get_Type(BSTR*ptype);
Put method:
HRESULT put_Type(BSTRvartype);

[Visual Basic]

Parameters

None.

Return Values

This property returns a String that contains the data type.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • ptype
    [out, retval] Pointer to a BSTR that contains the data type.

Put method:

  • vartype
    [in] BSTR that contains the data type.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

The Type property specifies XML data-type syntax. The list of supported data types is provided at KnowledgeDataTypes. The data type values are used in the Extends property of the KnowledgeContentClass object to set the data type of a user-defined property.

Properties accessed through SharePoint Portal Server also require a user-interface type. This type controls what data-entry style is used in the dashboard site, such as a single-line input box, a multiple-line text box, or a list. The available types are listed in the KnowledgeExtendedDataTypes enumeration. To set the extended data type you must access the "urn:schemas-microsoft-com:publishing:extended-type".property using ActiveX Data Objects (ADO).