Mono.Addins.RuntimeAddin.GetType C# (CSharp) Méthode

GetType() public méthode

Gets a type defined in the add-in
The type will be looked up in the assemblies that implement the add-in, and recursivelly in all add-ins on which it depends. This method throws an InvalidOperationException if the type can't be found.
public GetType ( string typeName ) : Type
typeName string /// Full name of the type ///
Résultat System.Type
        public Type GetType(string typeName)
        {
            return GetType (typeName, true);
        }

Same methods

RuntimeAddin::GetType ( string typeName, bool throwIfNotFound ) : Type

Usage Example

Exemple #1
0
 internal void InsertExtensionPoint(RuntimeAddin addin, ExtensionPoint ep)
 {
     CreateExtensionPoint(ep);
     foreach (ExtensionNodeType nt in ep.NodeSet.NodeTypes)
     {
         if (nt.ObjectTypeName.Length > 0)
         {
             Type ntype = addin.GetType(nt.ObjectTypeName, true);
             RegisterAutoTypeExtensionPoint(ntype, ep.Path);
         }
     }
 }
All Usage Examples Of Mono.Addins.RuntimeAddin::GetType