Runs a generator on a project item.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Sub RunGenerator ( _
document As String _
)
'使用
Dim instance As ISingleFileGenerator
Dim document As String
instance.RunGenerator(document)
void RunGenerator(
string document
)
void RunGenerator(
String^ document
)
function RunGenerator(
document : String
)
Parameters
document
Type: System.StringThe document on which to run the generator.
Remarks
This method runs the generator on the specified file, but only if the file is dirty in the running document table. Otherwise there is no need to rerun the generator because if the original document is not dirty then the generated output should be already up to date.
Permissions
- 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.