コード例 #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");
 }