本文整理汇总了C#中IApplication.FindExtensionByName方法的典型用法代码示例。如果您正苦于以下问题:C# IApplication.FindExtensionByName方法的具体用法?C# IApplication.FindExtensionByName怎么用?C# IApplication.FindExtensionByName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IApplication
的用法示例。
在下文中一共展示了IApplication.FindExtensionByName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
public override void OnCreate( System.Object hook )
{
app = (IApplication)hook;
ext = (ISDUTExtension)app.FindExtensionByName(ISDUTExtension.NAME);
}
示例2: OnCreate
/// <summary>
/// Occurs when this command is created
/// </summary>
/// <param name="hook">Instance of the application</param>
///
public override void OnCreate(object hook)
{
if (hook == null)
return;
m_application = hook as IApplication;
base.m_enabled = true;
if (m_application != null)
m_naExt = m_application.FindExtensionByName("Network Analyst") as INetworkAnalystExtension;
}
示例3: DoTrace
public DoTrace(IApplication appRef)
{
InitializeComponent();
_netAnalExt = (INetworkAnalysisExt) appRef.FindExtensionByName("Utility Network Analyst");
}
示例4:
void IDockableWindowDef.OnCreate(object hook)
{
m_application = hook as IApplication;
if (m_application == null)
return;
// Get the extension
IExtension pExt = m_application.FindExtensionByName("Workflow Manager");
m_pExt = pExt as IJTXExtension4;
// Register for listening with the extension
m_pExt.AttachListener(this);
m_pExt.AttachUpdater(this);
}