public AdomdConnection(string connectionString, AdomdType type) { _type = type; if (_type == AdomdType.AnalysisServices) { _conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString); } else { ExcelAdoMdConnections.VoidDelegate f = delegate { _connExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString); }; f(); } }
public AdomdConnection(string connectionString, AdomdType type) { _type = type; if (_type == AdomdType.AnalysisServices) { _conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString); } else { void f() { _connExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString); } f(); } }
public void Dispose() { if (_type == AdomdType.AnalysisServices) { if (_conn != null) { _conn.Dispose(); _conn = null; } } else { ExcelAdoMdConnections.VoidDelegate f = delegate { if (_connExcel != null) { _connExcel.Dispose(); _connExcel = null; } }; f(); } }
public void Dispose() { if (_type == AdomdType.AnalysisServices) { if (_conn != null) { _conn.Dispose(); _conn = null; } } else { void f() { if (_connExcel != null) { _connExcel.Dispose(); _connExcel = null; } } f(); } }
public AdomdConnection(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection obj) { _type = AdomdType.Excel; _connExcel = obj; }