public StructuredStorageRoot(string fileName) { try { this._storageRoot = (StorageInfo)StructuredStorageRoot.InvokeStorageRootMethod(null, "Open", fileName, FileMode.Open, FileAccess.Read, FileShare.Read); } catch (Exception innerException) { throw new StructuredStorageException("Cannot get StructuredStorageRoot", innerException); } }
public StructuredStorageRoot(Stream stream) { try { this._storageRoot = (StorageInfo)StructuredStorageRoot.InvokeStorageRootMethod(null, "CreateOnStream", stream); } catch (Exception innerException) { throw new StructuredStorageException("Cannot get StructuredStorageRoot", innerException); } }
private void CloseStorageRoot() { StructuredStorageRoot.InvokeStorageRootMethod(this._storageRoot, "Close"); }