ExpansionProvider.PrepareTemplate Method
Prepares for insertion of the specified snippet.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Декларация
Public Overridable Sub PrepareTemplate ( _
title As String, _
path As String _
)
public virtual void PrepareTemplate(
string title,
string path
)
Parameters
- title
Type: System.String
[in] A string containing the name of the snippet to insert.
- path
Type: System.String
[in] A string containing the path to the snippet template file.
Remarks
This method is called by Visual Studio to establish the snippet to be inserted.
The base method caches the snippet name and path and sets a flag indicating preparations are complete.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.