ValueTokenizer Class
Keeps a list of tokens, and values that correspond to those tokens. This class is used to tokenize and untokenize a given string.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.ValueTokenizer
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Class ValueTokenizer
public class ValueTokenizer
The ValueTokenizer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValueTokenizer | Initializes a new instance of the ValueTokenizer class. |
Top
Properties
Name | Description | |
---|---|---|
ReplaceEnvironmentVariables | Gets a Boolean value that indicates if environment variables will be replaced when untokenizing a string. To be replaced, environment variables must be in the format "%variable%". |
Top
Methods
Name | Description | |
---|---|---|
AddToken | Add a token and its value to the list. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
TokenizeFrontValue | Replaces a value with its corresponding token if the list contains a value that is at the front of the parameter string. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UntokenizeValue | Replaces a token with its corresponding value if the list contains a token that is part of the parameter string. Optionally, this method replaces the environment variables found in the parameter string. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.