AllowedDocumentFormats: IStringList;
The AllowedDocumentFormats property determines formats of documents that can be loaded and opened in repository.
To limit loading and opening of documents with available format, use the Allowed Document Format in Repository section in the security manager. Documents with any format can be loaded and opened by default.
To execute the example, add links to the Metabase and Collections system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Lic: Object;
Begin
MB := MetabaseClass.Active;
// Check out license to work with security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
// Add allowed document format
MS.Policy.AllowedDocumentFormats.Add("XML");
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example, documents in the XML format can be loaded and opened.
See also: