AccessAllowed: MetabaseUpdateAccessType;
AccessAllowed: Prognoz.Platform.Interop.Metabase.MetabaseUpdateAccessType;
The AccessAllowed property returns the type of access to the repository.
To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFileNF("C:\Update.pefx");
debug.WriteLine(Update.AccessAllowed);
End Sub UserProc;
After executing the example the index of the type of access to the update will be displayed in the console window.
To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required.
Sub UserProc(Params: StartParams);
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Begin
MB := Params.Metabase;
Update := Mb.CreateUpdate();
Update.LoadFromFileNF("D:\"+ "Update.pefx", UpdateLoadMode.ulmReplace);
System.Diagnostics.Debug.WriteLine(Update.AccessAllowed);
End Sub;
After executing the example the type of access to the update will be displayed in the console window.
See also: