本文整理汇总了C#中Microsoft.GetService方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.GetService方法的具体用法?C# Microsoft.GetService怎么用?C# Microsoft.GetService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft
的用法示例。
在下文中一共展示了Microsoft.GetService方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Sheet1
public Sheet1(Microsoft.VisualStudio.Tools.Applications.Runtime.IRuntimeServiceProvider RuntimeCallback) :
base(((Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)(RuntimeCallback.GetService(typeof(Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)))), RuntimeCallback, "Sheet1", null, "Sheet1") {
this.RuntimeCallback = RuntimeCallback;
}
示例2: Initialize
protected override void Initialize(Microsoft.ExtendedReflection.ComponentModel.IEngine engine)
{
engine.GetService<SeqexDatabase>();
base.Initialize(engine);
}
示例3: XWord2003AddIn
public XWord2003AddIn(Microsoft.VisualStudio.Tools.Applications.Runtime.IRuntimeServiceProvider RuntimeCallback) :
base(((Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)(RuntimeCallback.GetService(typeof(Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)))), RuntimeCallback, "AddIn", null, "ThisAddIn") {
this.RuntimeCallback = RuntimeCallback;
}
示例4: AfterExecution
public void AfterExecution(Microsoft.Pex.Engine.ComponentModel.IPexComponent host, object data)
{
host.GetService<SeqexDatabase>().AfterExecution();
}
示例5: OnServiceProvider
internal void OnServiceProvider(Microsoft.VisualStudio.OLE.Interop.IServiceProvider sp)
{
Init(sp.GetService<SDTE, EnvDTE.DTE>(),
_textManager = sp.GetService<SVsTextManager, IVsTextManager>());
}