Partager via


RequiresProvidesDirectiveProcessor.FriendlyName Property

When overridden in a derived class, gets the friendly name of the directive processor.

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

Syntax

'Declaration
Protected MustOverride ReadOnly Property FriendlyName As String
protected abstract string FriendlyName { get; }
protected:
virtual property String^ FriendlyName {
    String^ get () abstract;
}
abstract FriendlyName : string with get
abstract function get FriendlyName () : String

Property Value

Type: System.String
A String that contains the friendly name of the directive processor.

Remarks

The friendly name identifies the directive processor to the host. It is also the value that is specified in the processor parameter when a directive for this directive processor is called. For example, a call to a directive processor follows this syntax:

<#@ CoolDirectiveName Processor="FriendlyName" #>

Examples

This example gets the name of the processor. This code example is part of a larger example that is provided for the RequiresProvidesDirectiveProcessor class.

protected override string FriendlyName
{
get { return DomDirectiveProcessor.ProcessorName; }
}

.NET Framework Security

See Also

Reference

RequiresProvidesDirectiveProcessor Class

Microsoft.VisualStudio.TextTemplating Namespace