ADO.NET Data Services URI Functions

Table A-11. String functions

Function

Description

bool substringof(string p0, string p1)

Evaluates whether a string exists within another string

bool endswith(string p0, string p1)

Evaluates whether a string ends with another string

bool startswith(string p0, string p1)

Evaluates whether a string begins with another string

int length (string p0)

Returns the length of a string

int indexof(string p0)

Returns the index of the occurrence in a string

string concat(string p0, string p1)

Returns the concatenation of two strings

string insert(string p0, int pos, string p1)

Inserts a string into another string, at a specific position

string remove(string p0, int pos)

Removes a string from a specific position

string remove(string p0, int pos, int length)

Removes a string from a specific position for a specific length

string replace(string p0, string find, string replace)

Replaces a string with another string starting at a specific position

string substring(string p0, int pos)

Returns the contents of a string starting at a specific position

string substring(string p0, int pos, int length)

Returns the contents of a string starting at a specific position for a specific length

string tolower(string p0)

Returns the string in all lowercase

string toupper(string p0)

Returns the string in all uppercase

string trim(string p0)

Returns the string with trailing spaces removed

Table A-12. Math functions

Function

Description

double round(double p0)

Rounds a double value

decimal round(decimal p0)

Rounds ...

Get Data-Driven Services with Silverlight 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.