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:
DBPROPVAL_DST_TDP ? The provider is a tabular data provider.
DBPROPVAL_DST_MDP ? The provider is a multidimensional provider.
DBPROPVAL_DST_TDPANDMDP ? The provider is both a TDP and an MDP.
DBPROPVAL_DST_DOCSOURCE ? The provider supports direct URL binding and is a document source provider. A consumer can expect a document source provider to exhibit the following behavior:
When binding to a collection and requesting a rowset, the resource rowset defines the shape of that rowset.
When creating a new row via ICreateRow::CreateRow, the container class is defined to be a folder and the default columns of the new row are the columns of the resource rowset.
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).
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 |