Exemple #1
0
 /// <summary>
 /// Gets extension nodes for a type extension point
 /// </summary>
 /// <param name="instanceType">
 /// Type defining the extension point
 /// </param>
 /// <returns>
 /// A list of nodes
 /// </returns>
 /// <remarks>
 /// This method returns all nodes registered for the provided type.
 /// It will throw a InvalidOperationException if the type of one of
 /// the registered nodes is not assignable to the specified node type argument.
 /// </remarks>
 public static ExtensionNodeList <T> GetExtensionNodes <T> (Type instanceType) where T : ExtensionNode
 {
     AddinEngine.CheckInitialized();
     return(AddinEngine.GetExtensionNodes <T> (instanceType));
 }
Exemple #2
0
 /// <summary>
 /// Gets extension nodes for a type extension point
 /// </summary>
 /// <param name="instanceType">
 /// Type defining the extension point
 /// </param>
 /// <param name="expectedNodeType">
 /// Expected extension node type
 /// </param>
 /// <returns>
 /// A list of nodes
 /// </returns>
 /// <remarks>
 /// This method returns all nodes registered for the provided type.
 /// It will throw a InvalidOperationException if the type of one of
 /// the registered nodes is not assignable to the provided node type.
 /// </remarks>
 public static ExtensionNodeList GetExtensionNodes(Type instanceType, Type expectedNodeType)
 {
     AddinEngine.CheckInitialized();
     return(AddinEngine.GetExtensionNodes(instanceType, expectedNodeType));
 }
Exemple #3
0
 /// <summary>
 /// Gets extension nodes registered in a path.
 /// </summary>
 /// <param name="path">
 /// An extension path.
 /// </param>
 /// <param name="expectedNodeType">
 /// Expected node type.
 /// </param>
 /// <returns>
 /// A list of nodes
 /// </returns>
 /// <remarks>
 /// This method returns all nodes registered under the provided path.
 /// It will throw a InvalidOperationException if the type of one of
 /// the registered nodes is not assignable to the provided type.
 /// </remarks>
 public static ExtensionNodeList GetExtensionNodes(string path, Type expectedNodeType)
 {
     AddinEngine.CheckInitialized();
     return(AddinEngine.GetExtensionNodes(path, expectedNodeType));
 }
Exemple #4
0
 /// <summary>
 /// Gets extension nodes registered in a path.
 /// </summary>
 /// <param name="path">
 /// An extension path.
 /// </param>
 /// <returns>
 /// A list of nodes
 /// </returns>
 /// <remarks>
 /// This method returns all nodes registered under the provided path.
 /// It will throw a InvalidOperationException if the type of one of
 /// the registered nodes is not assignable to the provided type.
 /// </remarks>
 public static ExtensionNodeList <T> GetExtensionNodes <T> (string path) where T : ExtensionNode
 {
     AddinEngine.CheckInitialized();
     return(AddinEngine.GetExtensionNodes <T> (path));
 }
Exemple #5
0
 /// <summary>
 /// Gets extension nodes registered in a path.
 /// </summary>
 /// <param name="path">
 /// An extension path.>
 /// </param>
 /// <returns>
 /// All nodes registered in the provided path.
 /// </returns>
 public static ExtensionNodeList GetExtensionNodes(string path)
 {
     AddinEngine.CheckInitialized();
     return(AddinEngine.GetExtensionNodes(path));
 }