ExpansionProvider.PrepareTemplate Method
Prepares for insertion of the specified snippet.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Overridable Sub PrepareTemplate ( _
title As String, _
path As String _
)
'Usage
Dim instance As ExpansionProvider
Dim title As String
Dim path As String
instance.PrepareTemplate(title, path)
public virtual void PrepareTemplate(
string title,
string path
)
public:
virtual void PrepareTemplate(
String^ title,
String^ path
)
abstract PrepareTemplate :
title:string *
path:string -> unit
override PrepareTemplate :
title:string *
path:string -> unit
public function PrepareTemplate(
title : String,
path : String
)
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.