System.Xml.XmlConvert: Method Members

The methods of System.Xml.XmlConvert are listed below. For a list of all members, see the XmlConvert Members list.

See Also: Inherited members from System.Object

Public Methods

static
DecodeName(string) : string

Decodes a name. This method does the reverse of the XmlConvert.EncodeName(string) and XmlConvert.EncodeLocalName(string) methods.

static
EncodeLocalName(string) : string

Converts the name to a valid XML local name.

static
EncodeName(string) : string

Converts the name to a valid XML name.

static
EncodeNmToken(string) : string

Verifies the name is valid according to the XML specification.

static
IsNCNameChar(char) : bool

Checks whether the passed-in character is a valid non-colon character type.

static
IsPublicIdChar(char) : bool

Returns the passed-in character instance if the character in the argument is a valid public id character, otherwise null.

static
IsStartNCNameChar(char) : bool

Checks if the passed-in character is a valid Start Name Character type.

static
IsWhitespaceChar(char) : bool

Checks if the passed-in character is a valid XML whitespace character.

static
IsXmlChar(char) : bool

Checks if the passed-in character is a valid XML character.

static
IsXmlSurrogatePair(char, char) : bool

Checks if the passed-in surrogate pair of characters is a valid XML character.

static
ToBoolean(string) : bool

Converts the string to a bool equivalent.

static
ToByte(string) : byte

Converts the string to a byte equivalent.

static
ToChar(string) : char

Converts the string to a char equivalent.

static
ToDateTime(string) : DateTime

Converts the string to a DateTime equivalent.

static
ToDateTime(string, string) : DateTime

Converts the string to a DateTime equivalent.

static
ToDateTime(string, string[]) : DateTime

Converts the string to a DateTime equivalent.

static
ToDateTime(string, XmlDateTimeSerializationMode) : DateTime

Converts the string to a DateTime using the System.Xml.XmlDateTimeSerializationMode specified

static
ToDateTimeOffset(string) : DateTimeOffset

Converts the supplied string to a DateTimeOffset equivalent.

static
ToDateTimeOffset(string, string) : DateTimeOffset

Converts the supplied string to a DateTimeOffset equivalent.

static
ToDateTimeOffset(string, string[]) : DateTimeOffset

Converts the supplied string to a DateTimeOffset equivalent.

static
ToDecimal(string) : decimal

Converts the string to a decimal equivalent.

static
ToDouble(string) : double

Converts the string to a double equivalent.

static
ToGuid(string) : Guid

Converts the string to a Guid equivalent.

static
ToInt16(string) : short

Converts the string to a short equivalent.

static
ToInt32(string) : int

Converts the string to a int equivalent.

static
ToInt64(string) : long

Converts the string to a long equivalent.

static
ToSByte(string) : sbyte

Converts the string to a sbyte equivalent.

static
ToSingle(string) : float

Converts the string to a float equivalent.

static
ToString(bool) : string

Converts the bool to a string.

static
ToString(byte) : string

Converts the byte to a string.

static
ToString(char) : string

Converts the char to a string.

static
ToString(DateTime) : string

Converts the DateTime to a string.

static
ToString(DateTimeOffset) : string

Converts the supplied DateTimeOffset to a string.

static
ToString(decimal) : string

Converts the decimal to a string.

static
ToString(double) : string

Converts the double to a string.

static
ToString(Guid) : string

Converts the Guid to a string.

static
ToString(short) : string

Converts the short to a string.

static
ToString(int) : string

Converts the int to a string.

static
ToString(long) : string

Converts the long to a string.

static
ToString(sbyte) : string

Converts the sbyte to a string.

static
ToString(float) : string

Converts the float to a string.

static
ToString(TimeSpan) : string

Converts the TimeSpan to a string.

static
ToString(ushort) : string

Converts the ushort to a string.

static
ToString(uint) : string

Converts the uint to a string.

static
ToString(ulong) : string

Converts the ulong to a string.

static
ToString(DateTime, string) : string

Converts the DateTime to a string.

static
ToString(DateTime, XmlDateTimeSerializationMode) : string

Converts the DateTime to a string using the System.Xml.XmlDateTimeSerializationMode specified.

static
ToString(DateTimeOffset, string) : string

Converts the supplied DateTimeOffset to a string in the specified format.

static
ToTimeSpan(string) : TimeSpan

Converts the string to a TimeSpan equivalent.

static
ToUInt16(string) : ushort

Converts the string to a ushort equivalent.

static
ToUInt32(string) : uint

Converts the string to a uint equivalent.

static
ToUInt64(string) : ulong

Converts the string to a ulong equivalent.

static
VerifyName(string) : string

Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation.

static
VerifyNCName(string) : string

Verifies that the name is a valid NCName according to the W3C Extended Markup Language recommendation. An NCName is a name that cannot contain a colon.

static
VerifyNMTOKEN(string) : string

Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommendation

static
VerifyPublicId(string) : string

Returns the passed in string instance if all the characters in the string argument are valid public id characters.

static
VerifyTOKEN(string) : string

Verifies that the string is a valid token according to the W3C XML Schema Part2: Datatypes recommendation.

static
VerifyWhitespace(string) : string

Returns the passed-in string instance if all the characters in the string argument are valid whitespace characters.

static
VerifyXmlChars(string) : string

Returns the passed-in string if all the characters and surrogate pair characters in the string argument are valid XML characters, otherwise null.