다음을 통해 공유


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
Public method ValueTokenizer Initializes a new instance of the ValueTokenizer class.

Top

Properties

  Name Description
Protected property 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
Public method AddToken Add a token and its value to the list.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method TokenizeFrontValue Replaces a value with its corresponding token if the list contains a value that is at the front of the parameter string.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace