IImportRequestInstance.Provider

Syntax

Provider: Object;

Description

The Provider property returns the object used as a data source.

Comments

To work with the returned object, cast it to one of the data sources interfaces.

Example

Executing the example requires a time series database with the FC_COMM identifier that contains an import object with the IMP_OBJ identifier imported from a text file. Add links to the Metabase, Cubes, Dt system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    RubKey: Integer;
    Inst: IImportRequestInstance;
    Provider: IDtTextProvider;
Begin
    mb := MetabaseClass.Active;
    RubKey := mb.GetObjectKeyById("FC_COMM");
    Inst := mb.ItemByIdNamespace("IMP_OBJ", RubKey).Open(NullAs IImportRequestInstance;
    Provider := Inst.Provider As IDtTextProvider;
    Debug.WriteLine(Provider.File);
End Sub UserProc;

After executing the example name of the text file used by the import object is displayed in the console window.

See also:

IImportRequestInstance