MDAC 2.5 SDK - OLE DB Programmer's Reference
Appendix C: OLE DB Properties


 

DBPROP_DATASOURCE_TYPE

Property group: Data Source Information

Property set: DBPROPSET_DATASOURCEINFO

Type: VT_I4

Typical R/W: R

Description: Data Source Type

Following are returned values of this property and resulting behaviors:

The columns of the resource rowset are defined in the following table. Distributed Authoring and Versioning (DAV) is a protocol enhancement to HyperText Transfer Protocol (HTTP). For more information about Microsoft's implementation of DAV for resource rowsets, see the DAV namespace discussion in the Exchange Platinum section of the Platform SDK.

Column name Column ID Type indicator Description DAV property
RESOURCE_PARSENAME DBROWCOL_PARSENAME DBTYPE_WSTR Read-only.

URL of the resource. This name is usually a relative URL, although it can be an absolute URL.

If the resource is the root of a tree, its parse name is defined to be an empty string.

DAV:lastpathsegment
RESOURCE_PARENTNAME DBROWCOL_PARENTNAME DBTYPE_WSTR Read-only.

URL of the parent resource. The string always contains an absolute URL.

If the resource is the root of a tree, its parent name is defined to be an empty string.

DAV:parentname
RESOURCE_ABSOLUTEPARSENAME DBROWCOL_ABSOLUTEPARSENAME DBTYPE_WSTR Read-only

URL of the resource. This name is always an absolute URL and for nonroot resources is the concatenation of its parent name and its parse name.

DAV:href
RESOURCE_ISHIDDEN DBROWCOL_ISHIDDEN DBTYPE_BOOL VARIANT_TRUE: The resource is hidden. Therefore, no row for it will be returned in rowsets unless the command that created the rowset explicitly selected rows where RESOURCE_ISHIDDEN is VARIANT_TRUE. DAV:ishidden
RESOURCE_ISREADONLY DBROWCOL_ISREADONLY DBTYPE_BOOL VARIANT_TRUE:  The resource is read-only. Attempts to open this resource with DBBINDURLFLAG_WRITE return DB_E_READONLY.

This property can be edited even when the resource has been opened only for reading.

DAV:isreadonly
RESOURCE_CONTENTTYPE DBROWCOL_CONTENTTYPE DBTYPE_WSTR The MIME type of the document; for example, "text/html". DAV:getcontenttype
RESOURCE_CONTENTCLASS DBROWCOL_CONTENTCLASS DBTYPE_WSTR The likely use of the document. This might correspond to the Microsoft® Office template used to create the document. DAV:contentclass
RESOURCE_CONTENTLANGUAGE DBROWCOL_CONTENTLANGUAGE DBTYPE_WSTR The language in which the content is written; for example, "U.S. English". DAV:getcontentlanguage
RESOURCE_CREATIONTIME DBROWCOL_CREATIONTIME DBTYPE_FILETIME Read-only.

Specifies a FILETIME structure containing the time the resource was created. The time is reported in Coordinated Universal Time (UTC) format.

DAV:creationdate
RESOURCE_LASTACCESSTIME DBROWCOL_LASTACCESSTIME DBTYPE_FILETIME Read-only.

Specifies a FILETIME structure containing the time that the resource was last accessed. The time is in UTC format. The FILETIME members are zero if the provider does not support this time member.

DAV:lastaccessed
RESOURCE_LASTWRITETIME DBROWCOL_LASTWRITETIME DBTYPE_FILETIME Read-only.

Time when the resource was last modified. The time is stored in a FILETIME structure in UTC format. If the provider does not support the time member, the remaining FILETIME members are set to zero.

DAV:getlastmodified
RESOURCE_STREAMSIZE DBROWCOL_STREAMSIZE DBTYPE_UI8 Read-only.

Size of the resource's default stream, in bytes.

DAV:getcontentlength
RESOURCE_ISCOLLECTION DBROWCOL_ISCOLLECTION DBTYPE_BOOL Read-only.

VARIANT_TRUE:  The resource is a collection.

VARIANT_FALSE: The resource is atomic.

DAV:iscollection
RESOURCE_ISSTRUCTUREDDOCUMENT DBROWCOL_ISSTRUCTUREDDOCUMENT DBTYPE_BOOL VARIANT_TRUE:  The resource is a structured document.

VARIANT_FALSE:  The resource is not a structured document. It could be a collection or an atomic resource.

DAV:isstructureddocument
DEFAULT_DOCUMENT DBROWCOL_DEFAULTDOCUMENT DBTYPE_WSTR Read-only.

This resource contains a URL to the default simple document of a folder or a structured document. This is used when the default IStream is requested from a resource. This property is blank for atomic resources.

DAV:defaultdocument
CHAPTERED_CHILDREN CHAPTERED_CHILDREN OLE DB Chapter Optional.

Read-only.

Specifies the chapter of the rowset containing the children of the resource.

 
RESOURCE_DISPLAYNAME DBROWCOL_DISPLAYNAME DBTYPE_WSTR Read-only.

Display name of the resource.

DAV:displayname
RESOURCE_ISROOT DBROWCOL_ISROOT DBTYPE_BOOL Read-only.

VARIANT_TRUE:  The resource is a root of a collection. Can be used with RESOURCE_ISCOLLECTION.

DAV:isroot