Click or drag to resize

RemAdminCreateStorage Method

Paperwork .Net Kütüphanesi
Sistem içi kullanım için tasarlanmıştır. SDK'dan çıkarılmıştır. Yeni depolama alanı oluşturmak için kullanılan metottur. Belgelerin kaydedileceği fiziksel lokasyon tanımlaması için kullanılır.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_GenericResult CreateStorage(
	a_Storage jb
)

Parameters

jb
Type: a_Storage
Depolama alanı bilgisi

Return Value

Type: a_GenericResult
a_GenericResult nesnesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examples
C#
 

            public void CreateStorage()
            {
                   a_Storage st = new a_Storage();
                   { 
                       st.StorageId       = ObjectID.Empty;
                       st.StorageLocation = @"C:\Paperwork\Storages\Storage1"; 
                       st.StorageName     = new ObjectName("Storage1");
                       st.StorageSize     = 0;
                       st.StorageType     = STORAGETypes.FILE;
                       st.StorageUsed     = 0;
                   }      

                   a_GenericResult storage = p.rAdmin.CreateStorage(st);
                   if(storage.ErrorCode != 0)
                       throw new Exception (storage.Message);

            }
See Also