Bagikan melalui


ParameterDirectiveProcessor Class

Directive processor to route simple serializable parameters from callers or the host to the template.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextTemplating.DirectiveProcessor
    Microsoft.VisualStudio.TextTemplating.ParameterDirectiveProcessor

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.10.0 (in Microsoft.VisualStudio.TextTemplating.10.0.dll)

Syntax

'Declaration
Public NotInheritable Class ParameterDirectiveProcessor _
    Inherits DirectiveProcessor _
    Implements IRecognizeHostSpecific
public sealed class ParameterDirectiveProcessor : DirectiveProcessor, 
    IRecognizeHostSpecific
public ref class ParameterDirectiveProcessor sealed : public DirectiveProcessor, 
    IRecognizeHostSpecific
[<Sealed>]
type ParameterDirectiveProcessor =  
    class
        inherit DirectiveProcessor
        interface IRecognizeHostSpecific
    end
public final class ParameterDirectiveProcessor extends DirectiveProcessor implements IRecognizeHostSpecific

The ParameterDirectiveProcessor type exposes the following members.

Constructors

  Name Description
Public method ParameterDirectiveProcessor

Top

Properties

  Name Description
Protected property Errors Gets the errors that occurred while processing directives. (Inherited from DirectiveProcessor.)
Public property RequiresProcessingRunIsHostSpecific This processor does not require a host-specific template.

Top

Methods

  Name Description
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 FinishProcessingRun Nothing to do as we complete our run. (Overrides DirectiveProcessor.FinishProcessingRun().)
Public method GetClassCodeForProcessingRun Gets generated class code. (Overrides DirectiveProcessor.GetClassCodeForProcessingRun().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetImportsForProcessingRun (Overrides DirectiveProcessor.GetImportsForProcessingRun().)
Public method GetPostInitializationCodeForProcessingRun Get the code to contribute to the body of the initialize method of the generated template processing class as a consequence of the most recent run. This code will run after the base class' Initialize method (Overrides DirectiveProcessor.GetPostInitializationCodeForProcessingRun().)
Public method GetPreInitializationCodeForProcessingRun (Overrides DirectiveProcessor.GetPreInitializationCodeForProcessingRun().)
Public method GetReferencesForProcessingRun (Overrides DirectiveProcessor.GetReferencesForProcessingRun().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize (Overrides DirectiveProcessor.Initialize(ITextTemplatingEngineHost).)
Public method IsDirectiveSupported (Overrides DirectiveProcessor.IsDirectiveSupported(String).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ProcessDirective (Overrides DirectiveProcessor.ProcessDirective(String, IDictionary<String, String>).)
Public method StartProcessingRun (Overrides DirectiveProcessor.StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IRecognizeHostSpecific.SetProcessingRunIsHostSpecific

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.TextTemplating Namespace