Compartir a través de


ExpansionProvider.PrepareTemplate(String, String) Method

Definition

Prepares for insertion of the specified snippet.

public:
 virtual void PrepareTemplate(System::String ^ title, System::String ^ path);
public:
 virtual void PrepareTemplate(Platform::String ^ title, Platform::String ^ path);
 virtual void PrepareTemplate(std::wstring const & title, std::wstring const & path);
public virtual void PrepareTemplate (string title, string path);
abstract member PrepareTemplate : string * string -> unit
override this.PrepareTemplate : string * string -> unit
Public Overridable Sub PrepareTemplate (title As String, path As String)

Parameters

title
String

[in] A string containing the name of the snippet to insert.

path
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.

Applies to