Method SetProperty
SetProperty(String, Object)
Set the value of a property.
Declaration
void SetProperty(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The property name, which is a fully-qualified URI. |
System.Object | value | The requested value for the property. |
Remarks
The property name is any fully-qualified URI. It is possible for an IXMLReader to recognize a property name but to be unable to change the current value. Some property values may be immutable or mutable only in specific contexts, such as before, during, or after a parse.
IXMLReaders are not required to recognize setting any specific property names, though a core set is defined by SAX2.
This method is also the standard mechanism for setting extended handlers.
Exceptions
Type | Condition |
---|---|
SAXNotRecognizedException | If the property value can't be assigned or retrieved. |
SAXNotSupportedException | When the IXMLReader recognizes the property name but cannot set the requested value. |