public LocalCubeStream(string cubeFile, MsmdlocalWrapper.OpenFlags settings, int timeout, string password, string serverName) { try { this.cubeFile = cubeFile; this.msmdlocalWraper = MsmdlocalWrapper.LocalWrapper; this.hLocalServer = this.msmdlocalWraper.MSMDOpenLocal(cubeFile, settings, password, serverName); } catch (Win32Exception innerException) { this.msmdlocalWraper = null; this.hLocalServer = IntPtr.Zero; throw new XmlaStreamException(XmlaSR.LocalCube_FileNotOpened(cubeFile), innerException); } catch { this.msmdlocalWraper = null; this.hLocalServer = IntPtr.Zero; throw; } }
public IntPtr MSMDOpenLocal(string pszPathToFile, MsmdlocalWrapper.OpenFlags mskSettings, string pszPassword, string serverName) { return(base.CheckEmptyHandle(this.msmdOpenLocalDelegate(pszPathToFile, (uint)mskSettings, pszPassword, serverName))); }