BaseCodeGeneratorWithSite.GlobalServiceProvider 属性

提供适用于 Visual Studio 的全局服务提供程序上的包装

此 API 不兼容 CLS。 

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0(在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Protected ReadOnly Property GlobalServiceProvider As ServiceProvider
    Get
[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 安全性

请参见

参考

BaseCodeGeneratorWithSite 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间