本文整理汇总了C#中VisualStudio.SetBool方法的典型用法代码示例。如果您正苦于以下问题:C# VisualStudio.SetBool方法的具体用法?C# VisualStudio.SetBool怎么用?C# VisualStudio.SetBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VisualStudio
的用法示例。
在下文中一共展示了VisualStudio.SetBool方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveSettings
public override void SaveSettings(VisualStudio.IProjectSettings settings)
{
// TODO - Right now this class inherits from the view scaffolder model, so we need to call into the
// base class to save those settings as well. We want to remove this inheritance at some point
// and this method will have to change when we do.
base.SaveSettings(settings);
// We only want to save this value if this scaffolder uses views.
//
// Ex: Using the 'empty controller' scaffolder and then going back to 'Controller + EF + Views' should
// not uncheck the box for you.
if (IsViewGenerationSupported)
{
settings.SetBool(SavedSettingsKeys.IsViewGenerationSelectedKey, IsViewGenerationSelected);
}
if (IsAsyncSupported)
{
settings.SetBool(SavedSettingsKeys.IsAsyncSelectedKey, IsAsyncSelected);
}
}