CSXmlParser Class Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

This class facilitates the usage of the Content Studio parameters Xml. Callers can parse an existing ParametersXml document and return individual named parameter values. It is also possible to create a new ParametersXml document, add or remove named parameters to it and return it as in its string format using one of the overloaded ToString() methods. Parameter names are case-insensitive and is stored internally as lower case something that is reveled when you read the content as xml.
Inheritance Hierarchy

SystemObject
  ContentStudioCSXmlParser

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

[SerializableAttribute]
public class CSXmlParser : IEnumerable<KeyValuePair<string, string>>, 
	IEnumerable

The CSXmlParser type exposes the following members.

Constructors

  NameDescription
Public methodCSXmlParser
Creates a new CSXmlParser.
Public methodCSXmlParser(Stream)
Creates a new CSXmlParser from a Stream that contains the data to load.
Public methodCSXmlParser(String)
Creates a new CSXmlParser
Public methodCSXmlParser(XmlReader)
Creates a new CSXmlParser from an XmlReader
Public methodCSXmlParser(String, Encoding)
Creates a new CSXmlParser
Top
Properties

  NameDescription
Public propertyCount
Returns the number of parameters in the object.
Public propertyItemInt32
Sets or gets the value of a parameter
Public propertyItemString
Sets or gets the value of a parameter
Top
Methods

  NameDescription
Public methodAdd(String)
Adds a new named parameter.
Public methodAdd(String, String)
Adds a new named parameter.
Public methodClear
Removes all parameters.
Public methodContains
Checks whether a certain parameter exists
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetParameter(String)
Gets the value of a parameter as a string
Public methodGetParameter(String, String)
Gets the value of a parameter
Public methodGetParameterAsBoolean(String)
Returns a parameter as an integer. The value must be possible to convert to boolean. Valid value pairs are true/false, 1/0, yes/no or on/off.
Public methodGetParameterAsBoolean(String, Boolean)
Returns a parameter as an integer. The value must be possible to convert to boolean. Valid value pairs are true/false, 1/0, yes/no or on/off.
Public methodGetParameterAsBooleanArray
Returns an array of Boolean values that are stored as a separated value strings in the parameter.
Public methodGetParameterAsCSFileObjectType(String)
Returns a parameter as a CSFileObjectTypes enumeration. The value must be possible to convert to this data type from its string representation.
Public methodGetParameterAsCSFileObjectType(String, CSFileObjectTypes)
Returns a parameter as a CSFileObjectTypes enumeration. The value must be possible to convert to this data type from its string representation.
Public methodGetParameterAsCSSecurableObjects(String)
Returns a parameter as a CSSecurableObjects type
Public methodGetParameterAsCSSecurableObjects(String, CSSecurableObjects)
Returns a parameter as a CSSecurableObjects type
Public methodGetParameterAsDateTime(String)
Returns a parameter as a DateTime. The value must be possible to convert to a DateTime.
Public methodGetParameterAsDateTime(String, DateTime)
Returns a parameter as a DateTime. The value must be possible to convert to a DateTime.
Public methodGetParameterAsDateTimeArray
Returns an array of strings that are stored as a separated value strings in the parameter.
Public methodGetParameterAsInt32(String)
Returns a parameter as an integer. The value must be possible to convert to an integer.
Public methodGetParameterAsInt32(String, Int32)
Returns a parameter as an integer. The value must be possible to convert to an integer.
Public methodGetParameterAsInt32Array
Returns an array of Int32 values that are stored as a separated value strings in the parameter.
Public methodGetParameterAsStringArray
Returns an array of strings that are stored as a separator separated value string in the parameter.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes a named parameter.
Public methodToString
Returns the CSXml represented by the object as as string. Parameters with null values are omitted.
(Overrides ObjectToString.)
Public methodToString(Encoding)
Returns the CSXml represented by the object as as string. Parameters with null values are omitted.
Top
See Also

Reference