RemAdminCreateStorage Method |
Namespace: Paperwork.Connect
public a_GenericResult CreateStorage( a_Storage jb )
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);
}