private static extern int PBORCA_LibraryEntryExport125( int hORCASession, [MarshalAs(UnmanagedType.LPWStr)] string lpszLibraryName, [MarshalAs(UnmanagedType.LPWStr)] string lpszEntryName, PBORCA_ENTRY_TYPE otEntryType, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder lpszExportBuffer, System.Int32 lExportBufferSize);
/// <summary> /// converts the PBORCA_ENTRY_TYPE to Objecttype /// </summary> /// <param name="entryType"></param> /// <returns></returns> private Objecttype GetObjecttype(PBORCA_ENTRY_TYPE entryType) { Objecttype type = Objecttype.None; switch (entryType) { case PBORCA_ENTRY_TYPE.PBORCA_APPLICATION: type = Objecttype.Application; break; case PBORCA_ENTRY_TYPE.PBORCA_BINARY: type = Objecttype.Binary; break; case PBORCA_ENTRY_TYPE.PBORCA_DATAWINDOW: type = Objecttype.Datawindow; break; case PBORCA_ENTRY_TYPE.PBORCA_FUNCTION: type = Objecttype.Function; break; case PBORCA_ENTRY_TYPE.PBORCA_MENU: type = Objecttype.Menu; break; case PBORCA_ENTRY_TYPE.PBORCA_PIPELINE: type = Objecttype.Pipeline; break; case PBORCA_ENTRY_TYPE.PBORCA_PROJECT: type = Objecttype.Project; break; case PBORCA_ENTRY_TYPE.PBORCA_PROXYOBJECT: type = Objecttype.Proxyobject; break; case PBORCA_ENTRY_TYPE.PBORCA_QUERY: type = Objecttype.Query; break; case PBORCA_ENTRY_TYPE.PBORCA_STRUCTURE: type = Objecttype.Structure; break; case PBORCA_ENTRY_TYPE.PBORCA_USEROBJECT: type = Objecttype.Userobject; break; case PBORCA_ENTRY_TYPE.PBORCA_WINDOW: type = Objecttype.Window; break; } return(type); }
/// <summary> /// converts the Objecttype to PBORCA_ENTRY_TYPE /// </summary> /// <param name="type">Objecttype</param> /// <returns></returns> private PBORCA_ENTRY_TYPE GetEntryType(Objecttype type) { PBORCA_ENTRY_TYPE entryType = PBORCA_ENTRY_TYPE.PBORCA_BINARY; switch (type) { case Objecttype.Application: entryType = PBORCA_ENTRY_TYPE.PBORCA_APPLICATION; break; case Objecttype.Binary: entryType = PBORCA_ENTRY_TYPE.PBORCA_BINARY; break; case Objecttype.Datawindow: entryType = PBORCA_ENTRY_TYPE.PBORCA_DATAWINDOW; break; case Objecttype.Function: entryType = PBORCA_ENTRY_TYPE.PBORCA_FUNCTION; break; case Objecttype.Menu: entryType = PBORCA_ENTRY_TYPE.PBORCA_MENU; break; case Objecttype.Pipeline: entryType = PBORCA_ENTRY_TYPE.PBORCA_PIPELINE; break; case Objecttype.Project: entryType = PBORCA_ENTRY_TYPE.PBORCA_PROJECT; break; case Objecttype.Proxyobject: entryType = PBORCA_ENTRY_TYPE.PBORCA_PROXYOBJECT; break; case Objecttype.Query: entryType = PBORCA_ENTRY_TYPE.PBORCA_QUERY; break; case Objecttype.Structure: entryType = PBORCA_ENTRY_TYPE.PBORCA_STRUCTURE; break; case Objecttype.Userobject: entryType = PBORCA_ENTRY_TYPE.PBORCA_USEROBJECT; break; case Objecttype.Window: entryType = PBORCA_ENTRY_TYPE.PBORCA_WINDOW; break; } return(entryType); }