VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.AspNetCore.ApiControllers Namespace / VintasoftAnnotationCollectionApiController Class / CreateGlobalResourcesDataStorage() Method
Syntax Remarks Requirements SeeAlso
In This Topic
    CreateGlobalResourcesDataStorage() Method (VintasoftAnnotationCollectionApiController)
    In This Topic
    Creates a data storage for global resources.
    Syntax
    'Declaration
    
    Protected Overridable Function CreateGlobalResourcesDataStorage() As Vintasoft.Data.IDataStorage
    
    
    protected virtual Vintasoft.Data.IDataStorage CreateGlobalResourcesDataStorage()
    
    
    protected: virtual Vintasoft.Data.IDataStorage CreateGlobalResourcesDataStorage()
    
    
    protected:
    virtual Vintasoft.Data.IDataStorage CreateGlobalResourcesDataStorage()

    Return Value

    The data storage.
    Remarks

    By default method creates the Vintasoft.Data.StreamDataStorage that works with directory "{Project_Path}/Resources".

    If you want to create the Vintasoft.Data.StreamDataStorage that works with custom directory, set value of DataDirectoryDefaultPath property and method will create Vintasoft.Data.StreamDataStorage that works with directory "{WebServicesGlobalSettings.DataDirectoryDefaultPath}/Resources".

    Important: If you want to implement custom logic of this method, make sure the method returns data storage that can work with System.IO.Stream objects.

    Requirements

    Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7, .NET 6

    See Also