Export (0) Print
Expand All

ParameterizedString Class

Represents a string that has embedded parameters.

System.Object
  Microsoft.TeamFoundation.TestManagement.Client.ParameterizedString

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

public class ParameterizedString : IEnumerable<ParameterizedStringPart>, 
	IEnumerable

The ParameterizedString type exposes the following members.

  NameDescription
Public methodParameterizedString()Initializes a new instance of the ParameterizedString class.
Public methodParameterizedString(String)Initializes a new instance of the ParameterizedString class by using the given string.
Public methodParameterizedString(XmlReader)Initializes a new instance of the ParameterizedString class by using the provided XML reader.
Public methodParameterizedString(IEnumerable<ParameterizedStringPart>)Initializes a new instance of the ParameterizedString class by using the provided list of parameter parts.
Top

  NameDescription
Public propertyCountGets the number of parts in the string.
Public propertyStatic memberEmptyGets an empty parameterized string.
Public propertyItemGets the parameter part at the given index of the list of parts.
Public propertyParameterNamesGets a read-only collection of parameter names from the list of parameter parts.
Top

  NameDescription
Public methodCopyReturns a copy of this parameterized string.
Public methodEquals(Object)Returns a value that indicates whether two objects are equal. (Overrides Object.Equals(Object).)
Public methodEquals(ParameterizedString)Returns a value that indicates whether the provided parameterized string is equal to this parameterized string.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFromXmlLoads the parameters by using the provided XML reader.
Public methodGetEnumeratorReturns an enumerator that iterates through the parameter parts collection of this parameterized string.
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Object.GetHashCode().)
Public methodStatic memberGetParameterNamingErrorMessageReturns the localized message to be returned for an attempt to add a parameter part by using an invalid parameter name.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsValidParameterNameReturns a value that indicates whether the provided name is a valid parameter name.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRenameParameterRenames the specified parameter by using the given new name and returns the changed parameterized string.
Public methodReplaceParameterReplaces the specified parameter value by using the given replacement text.
Public methodToStringReturns this parameterized string object as a string. (Overrides Object.ToString().)
Public methodToXmlCreates an XML representation of this parameterized string and saves it to the provided XML writer.
Top

  NameDescription
Public operatorStatic memberEqualityReturns the operator to use in code for equality (==).
Public operatorStatic memberImplicit(String to ParameterizedString)Converts a string to a parameterized string.
Public operatorStatic memberImplicit(ParameterizedString to String)Returns an operator that can be used for implicit comparison of parameterized strings.
Public operatorStatic memberInequalityReturns a value that indicates whether two objects are not equal.
Top

  NameDescription
Public fieldStatic memberElementNameContains the name of the element to use when this parameterized string object is saved to XML.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through a collection.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft