Пример #1
0
 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);
     }
 }
Пример #2
0
 public StructuredStorageRoot(Stream stream)
 {
     try
     {
         this._storageRoot = (StorageInfo)StructuredStorageRoot.InvokeStorageRootMethod(null, "CreateOnStream", stream);
     }
     catch (Exception innerException)
     {
         throw new StructuredStorageException("Cannot get StructuredStorageRoot", innerException);
     }
 }
Пример #3
0
 private void CloseStorageRoot()
 {
     StructuredStorageRoot.InvokeStorageRootMethod(this._storageRoot, "Close");
 }