BaseCodeGeneratorWithSite.GlobalServiceProvider 属性
提供适用于 Visual Studio 的全局服务提供程序上的包装
此 API 不兼容 CLS。
命名空间: Microsoft.VisualStudio.TextTemplating.VSHost
程序集: Microsoft.VisualStudio.TextTemplating.VSHost.11.0(在 Microsoft.VisualStudio.TextTemplating.VSHost.11.0.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
Protected ReadOnly Property GlobalServiceProvider As ServiceProvider
[CLSCompliantAttribute(false)]
protected ServiceProvider GlobalServiceProvider { get; }
[CLSCompliantAttribute(false)]
protected:
property ServiceProvider^ GlobalServiceProvider {
ServiceProvider^ get ();
}
[<CLSCompliantAttribute(false)>]
member GlobalServiceProvider : ServiceProvider
function get GlobalServiceProvider () : ServiceProvider
属性值
类型:Microsoft.VisualStudio.Shell.ServiceProvider
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。