IContentListFactory::get_Schema, put_Schema Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
The Schema property is a ContentListSchema object that contains the schema used by this ContentListFactory object. The Schema property is read/write.
HRESULT IContentListFactory::get_Schema(
IContentListSchema** Schema
);
HRESULT IContentListFactory::put_Schema(
IContentListSchema* Schema
);
Property Schema() As ContentListSchema
Parameters
Schema
[C++][in] When putting the property, a pointer to the IContentListSchema interface of the ContentListSchema object that contains the new schema for this ContentListFactory object.
[out,retval] When getting the property, a pointer to an address used to return the IContentListSchema interface of the ContentListSchema object that contains the schema for this ContentListFactory object.
Return Value
[C++]
These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.
[C++]
None.
Error Values
[C++]
These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.
[Visual Basic]
This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
This property is intended to only be set once. However, until any ContentList object is created using the CreateNewContentList method, or until rows are allocated in the ContentListFactory object by setting the Count property, it can be changed.
If this property is read before it is written, an empty ContentListSchema object will be created and returned.