SetProperty (IXmlReader) (Compact 2013)
3/26/2014
This interface sets the specified property.
Syntax
HRESULT SetProperty (
UINT nProperty,
LONG_PTR pValue
);
Arguments
- nProperty
[in] The Enum that identifies the property that is to be set
- pValue
[in] The property value
Return Value
This interface returns S_OK if no error is generated. If an invalid property name is passed, this interface returns E_NOTIMPL.
Remarks
For information about the properties this method can set, see IXmlReader Properties.
A program should set properties before parsing starts only-that is, before the first call to Read.
The following code sets the XmlReaderProperty_DtdProcessing property to prohibit DTDs.
if (FAILED(hr = pReader->SetProperty(XmlReaderProperty_DtdProcessing, DtdProcessing_Prohibit)))
{
wprintf(L"Error setting XmlReaderProperty_DtdProcessing, error is %08.8lx", hr);
return -1;
}
See Also
Reference
IXmlReader Methods
Read
XmlReaderProperty_DtdProcessing
GetProperty (IXmlReader)
IXmlReader Properties
Error Codes