Bagikan melalui


ITextTemplatingCallback.SetOutputEncoding Method

Called once when a text template is processed, to inform you of the character encoding to be used for the output.

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

Syntax

'Declaration
Sub SetOutputEncoding ( _
    encoding As Encoding, _
    fromOutputDirective As Boolean _
)
void SetOutputEncoding(
    Encoding encoding,
    bool fromOutputDirective
)
void SetOutputEncoding(
    Encoding^ encoding, 
    bool fromOutputDirective
)
abstract SetOutputEncoding : 
        encoding:Encoding * 
        fromOutputDirective:bool -> unit 
function SetOutputEncoding(
    encoding : Encoding, 
    fromOutputDirective : boolean
)

Parameters

  • fromOutputDirective
    Type: System.Boolean
    True if this encoding was explicitly requested in the output directive of the template.

Remarks

For more information, see T4 Output Directive.

.NET Framework Security

See Also

Reference

ITextTemplatingCallback Interface

Microsoft.VisualStudio.TextTemplating.VSHost Namespace