Export (0) Print
Expand All

StringPrototype Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides static methods and properties for StringObject objects. All methods of this class are called by passing in a reference to the object that is requesting access to the method. This class belongs to the built-in object model category.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public class StringPrototype : StringObject

The StringPrototype type exposes the following members.

  NameDescription
Public propertyStatic memberconstructorGets a reference to a prototype-based object that is using this prototype.
Public propertyItem[Double]Gets or sets a member of the script object that is designated by the specified Double index value. (Inherited from ScriptObject.)
Public propertyItem[Int32]Gets or sets a member of the script object that is designated by the specified Int32 index value. (Inherited from ScriptObject.)
Public propertyItem[Object[]]Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value. (Inherited from ScriptObject.)
Public propertyItem[String]Gets or sets a member of the script object that is designated by the specified name. (Inherited from ScriptObject.)
Public propertylengthGets the number of characters in the string. (Inherited from StringObject.)
Public propertyUnderlyingSystemTypeGets the type of the script object. (Inherited from ScriptObject.)
Top

  NameDescription
Public methodAddFieldAdds the specified field to the object. (Inherited from JSObject.)
Public methodStatic memberanchorConverts the specified object to text enclosed in anchor tags, and gives the anchor element the specified name attribute.
Public methodStatic memberbigConverts the specified object to text enclosed in bigger text markup tags.
Public methodStatic memberblinkConverts the specified object to text enclosed in blink markup tags.
Public methodStatic memberboldConverts the specified object to text enclosed in bold text markup tags.
Public methodStatic membercharAtReturns the character at the specified position in the specified object.
Public methodStatic membercharCodeAtReturns the ASCII code of the character at the specified position in the specified object.
Public methodStatic memberconcatAppends the specified arguments to the specified object.
Public methodEqualsDetermines whether this string and the specified string have the same value. (Inherited from StringObject.)
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 methodStatic memberfixedConverts the specified object to text enclosed in fixed-width text markup tags.
Public methodStatic memberfontcolorConverts the specified object to text enclosed in font tags, and gives the element the specified color attribute.
Public methodStatic memberfontsizeConverts the specified object to text enclosed in font tags, and gives the element the specified size attribute.
Public methodGetFieldGets a field that has the specified name. (Inherited from ScriptObject.)
Public methodGetFieldsGets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.)
Public methodGetHashCodeReturns the hash code for this string. (Inherited from StringObject.)
Public methodGetMemberGets an array of MemberInfo objects that correspond to all members that match the specified name. (Inherited from JSObject.)
Public methodGetMembersGets an array of MemberInfo objects that correspond to all members of the current script object. (Inherited from JSObject.)
Public methodGetMethod(String, BindingFlags)Gets a method that has the specified name. (Inherited from ScriptObject.)
Public methodGetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodGetMethodsGets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.)
Public methodGetParentGets a reference to the parent object. (Inherited from ScriptObject.)
Public methodGetPropertiesGets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags)Gets a property that has the specified name. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])Gets a property that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodGetTypeReturns String or StringObject. (Inherited from StringObject.)
Public methodStatic memberindexOfSearches for the first occurrence of the specified string in the specified object, starting from the specified character position.
Public methodInvokeMemberInvokes the specified member. (Inherited from ScriptObject.)
Public methodStatic memberitalicsConverts the specified object to text enclosed in italic text markup tags.
Public methodStatic memberlastIndexOfSearches for the last occurrence of the specified string in the specified object, starting from the specified character position.
Public methodStatic memberlinkConverts the specified object to text enclosed in anchor tags, and gives the anchor element the link target attribute that is specified.
Public methodStatic memberlocaleCompareCompares the two specified strings and returns an integer that indicates the lexical relationship between them.
Public methodStatic membermatchRuns a search for the specified regular expression pattern on the specified object.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberreplaceRuns a search for the specified regular expression pattern on the first specified object, and replaces any matches with the third specified object.
Public methodStatic membersearchRuns a search for the specified regular expression pattern on the specified object.
Public methodSetMemberValue2Sets the value of a field that was dynamically added to the object and stored in field_table. (Inherited from JSObject.)
Public methodStatic membersliceCreates a new string that contains the specified consecutive characters from the specified string.
Public methodStatic membersmallConverts the specified object to text enclosed in smaller text markup tags.
Public methodStatic membersplitReturns an array that contains the substrings in the specified object that are delimited by the specified characters. The number of substrings in the array is constrained by the specified limit.
Public methodStatic memberstrikeConverts the specified object to text enclosed in strikethrough markup tags.
Public methodStatic membersubConverts the specified object to text enclosed in subscript markup tags.
Public methodStatic membersubstrCreates a new string that contains the specified number of consecutive characters from the specified string, starting from the specified character position. Use substring instead, if you can.
Public methodStatic membersubstringCreates a new string that contains the specified consecutive characters from the specified string.
Public methodStatic membersupConverts the specified object to text enclosed in superscript markup tags.
Public methodStatic membertoLocaleLowerCaseReturns a copy of the specified string converted to lowercase, based on the casing rules of CurrentUICulture.
Public methodStatic membertoLocaleUpperCaseReturns a copy of the specified string converted to uppercase, based on the casing rules of CurrentUICulture.
Public methodStatic membertoLowerCaseReturns a copy of the specified string converted to lowercase, based on the casing rules of InvariantCulture.
Public methodStatic membertoStringCreates a string representation of the specified object.
Public methodToStringReturns a string that represents the current object. (Inherited from JSObject.)
Public methodStatic membertoUpperCaseReturns a copy of the specified string converted to uppercase, based on the casing rules of InvariantCulture.
Public methodStatic membervalueOfReturns the value of the specified object.
Top

  NameDescription
Public fieldengineStores a reference to the scripting engine. (Inherited from ScriptObject.)
Protected fieldfield_tableStores a list of fields that are dynamically added and removed from the object. (Inherited from JSObject.)
Protected fieldparentStores a reference to the parent object. (Inherited from ScriptObject.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through the members of the object. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando.AddMethodAdds the specified method to the object. IExpando.AddMethod is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando.AddPropertyAdds the specified property to the object. This method is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando.RemoveMemberRemoves the specified member from the object. (Inherited from JSObject.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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