Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Associates custom message types with the XML context object.
This method should only be called by generated code, and should not be called directly by a WSDAPI client. Instead, the code generator will provide wrappers that access this method properly.
Syntax
HRESULT SetTypes(
[in] const PCWSDXML_TYPE *pTypes,
[in] DWORD dwTypesCount,
[in] BYTE bLayerNumber
);
Parameters
[in] pTypes
An array of WSDXML_TYPE structures that represent the set of messages for the generated code.
[in] dwTypesCount
The number of types in the pTypes array.
[in] bLayerNumber
The layer number associated with the generated service code.
Return value
Possible return values include, but are not limited to, the following:
| Return code | Description |
|---|---|
|
Method completed successfully. |
|
pTypes is NULL or bLayerNumber is greater than or equal to WSD_XMLCONTEXT_NUM_LAYERS (16). |
|
Insufficient memory to complete the operation. |
|
The method failed. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | wsdxml.h (include Wsdapi.h) |
| DLL | Wsdapi.dll |