Show / Hide Table of Contents

Class XmlRpcScalarValue

Represents a scalar remote procedure parameter value.

Inheritance
System.Object
XmlRpcScalarValue
Implements
IXmlRpcValue
System.IComparable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Argotic.Net
Assembly: Argotic.Core.dll
Syntax
[Serializable]
public class XmlRpcScalarValue : IXmlRpcValue, IComparable

Constructors

| Improve this Doc View Source

XmlRpcScalarValue()

Initializes a new instance of the XmlRpcScalarValue class.

Declaration
public XmlRpcScalarValue()
| Improve this Doc View Source

XmlRpcScalarValue(Boolean)

Initializes a new instance of the XmlRpcScalarValue class using the specified boolean value.

Declaration
public XmlRpcScalarValue(bool value)
Parameters
Type Name Description
System.Boolean value

A boolean value.

Remarks

This constructor sets the ValueType property to be Boolean, and sets the Value property using the supplied value.

| Improve this Doc View Source

XmlRpcScalarValue(Byte[])

Initializes a new instance of the XmlRpcScalarValue class using the specified array of bytes.

Declaration
public XmlRpcScalarValue(byte[] value)
Parameters
Type Name Description
System.Byte[] value

An array of 8-bit unsigned integers.

Remarks

This constructor sets the ValueType property to be Base64, and sets the Value property using the supplied value.

Exceptions
Type Condition
System.ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

| Improve this Doc View Source

XmlRpcScalarValue(DateTime)

Initializes a new instance of the XmlRpcScalarValue class using the specified instance in time.

Declaration
public XmlRpcScalarValue(DateTime value)
Parameters
Type Name Description
System.DateTime value

A System.DateTime, provided in Coordinated Universal Time (UTC).

Remarks

This constructor sets the ValueType property to be DateTime, and sets the Value property using the supplied value.

| Improve this Doc View Source

XmlRpcScalarValue(Double)

Initializes a new instance of the XmlRpcScalarValue class using the specified double-precision signed floating-point number.

Declaration
public XmlRpcScalarValue(double value)
Parameters
Type Name Description
System.Double value

A double-precision signed floating-point number.

Remarks

This constructor sets the ValueType property to be Double, and sets the Value property using the supplied value.

| Improve this Doc View Source

XmlRpcScalarValue(Int32)

Initializes a new instance of the XmlRpcScalarValue class using the specified 32-bit signed integer.

Declaration
public XmlRpcScalarValue(int value)
Parameters
Type Name Description
System.Int32 value

A 32-bit signed integer.

Remarks

This constructor sets the ValueType property to be Integer, and sets the Value property using the supplied value.

| Improve this Doc View Source

XmlRpcScalarValue(String)

Initializes a new instance of the XmlRpcScalarValue class using the specified series of characters.

Declaration
public XmlRpcScalarValue(string value)
Parameters
Type Name Description
System.String value

A series of characters.

Remarks

This constructor sets the ValueType property to be String, and sets the Value property using the supplied value.

Properties

| Improve this Doc View Source

Value

Gets or sets the value of this parameter.

Declaration
public object Value { get; set; }
Property Value
Type Description
System.Object

A System.Object that represents the value of this parameter.

Remarks

The value should represent a System.Type that is appropriate for this parameter's ValueType.

Exceptions
Type Condition
System.ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

| Improve this Doc View Source

ValueType

Gets or sets the type of scalar value this parameter represents.

Declaration
public XmlRpcScalarValueType ValueType { get; set; }
Property Value
Type Description
XmlRpcScalarValueType

A XmlRpcScalarValueType enumeration value that indicates the type of scalar value this parameter represents. The default value is None, which indicates that no type was specified.

Remarks

If no type is indicated, the type is assumed to be String.

See Also
ScalarTypeAsString(XmlRpcScalarValueType)
ScalarTypeByName(String)

Methods

| Improve this Doc View Source

CompareTo(Object)

Compares the current instance with another object of the same type.

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
System.Object obj

An object to compare with this instance.

Returns
Type Description
System.Int32

A 32-bit signed integer that indicates the relative order of the objects being compared.

Exceptions
Type Condition
System.ArgumentException

The obj is not the expected System.Type.

| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object is equal to the current instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with the current instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to the current instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code for the current instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer hash code.

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

Load(XPathNavigator)

Loads this XmlRpcScalarValue using the supplied System.Xml.XPath.XPathNavigator.

Declaration
public bool Load(XPathNavigator source)
Parameters
Type Name Description
System.Xml.XPath.XPathNavigator source

The System.Xml.XPath.XPathNavigator to extract information from.

Returns
Type Description
System.Boolean

true if the XmlRpcScalarValue was initialized using the supplied source, otherwise false.

Remarks

This method expects the supplied source to be positioned on the XML element that represents a XmlRpcScalarValue.

Exceptions
Type Condition
System.ArgumentNullException

The source is a null reference (Nothing in Visual Basic).

| Improve this Doc View Source

ToString()

Returns a System.String that represents the current XmlRpcScalarValue.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current XmlRpcScalarValue.

Overrides
System.Object.ToString()
Remarks

This method returns the XML representation for the current instance.

| Improve this Doc View Source

WriteTo(XmlWriter)

Saves the current XmlRpcScalarValue to the specified System.Xml.XmlWriter.

Declaration
public void WriteTo(XmlWriter writer)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The System.Xml.XmlWriter to which you want to save.

Exceptions
Type Condition
System.ArgumentNullException

The writer is a null reference (Nothing in Visual Basic).

Operators

| Improve this Doc View Source

Equality(XmlRpcScalarValue, XmlRpcScalarValue)

Determines if operands are equal.

Declaration
public static bool operator ==(XmlRpcScalarValue first, XmlRpcScalarValue second)
Parameters
Type Name Description
XmlRpcScalarValue first

Operand to be compared.

XmlRpcScalarValue second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the values of its operands are equal, otherwise; false.

| Improve this Doc View Source

GreaterThan(XmlRpcScalarValue, XmlRpcScalarValue)

Determines if first operand is greater than second operand.

Declaration
public static bool operator>(XmlRpcScalarValue first, XmlRpcScalarValue second)
Parameters
Type Name Description
XmlRpcScalarValue first

Operand to be compared.

XmlRpcScalarValue second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the first operand is greater than the second, otherwise; false.

| Improve this Doc View Source

Inequality(XmlRpcScalarValue, XmlRpcScalarValue)

Determines if operands are not equal.

Declaration
public static bool operator !=(XmlRpcScalarValue first, XmlRpcScalarValue second)
Parameters
Type Name Description
XmlRpcScalarValue first

Operand to be compared.

XmlRpcScalarValue second

Operand to compare to.

Returns
Type Description
System.Boolean

false if its operands are equal, otherwise; true.

| Improve this Doc View Source

LessThan(XmlRpcScalarValue, XmlRpcScalarValue)

Determines if first operand is less than second operand.

Declaration
public static bool operator <(XmlRpcScalarValue first, XmlRpcScalarValue second)
Parameters
Type Name Description
XmlRpcScalarValue first

Operand to be compared.

XmlRpcScalarValue second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the first operand is less than the second, otherwise; false.

Implements

IXmlRpcValue
System.IComparable

See Also

Parameters
IXmlRpcValue
  • Improve this Doc
  • View Source
Back to top Generated by DocFX