 | CDOCUSetFileMeta Method |
Set the document from a file source with metadata.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic void SetFileMeta(
string type,
string name,
string file
)
public void SetFileMeta(
string type,
string name,
string file
)
Public Sub SetFileMeta (
type As String,
name As String,
file As String
)
Public Sub SetFileMeta (
type As String,
name As String,
file As String
)
public:
void SetFileMeta(
String^ type,
String^ name,
String^ file
)
public:
void SetFileMeta(
String^ type,
String^ name,
String^ file
)
member SetFileMeta :
type : string *
name : string *
file : string -> unit
member SetFileMeta :
type : string *
name : string *
file : string -> unit
Parameters
- type
- Type: SystemString
Document type extension - name
- Type: SystemString
Document name, if NULL use file name - file
- Type: SystemString
Document file or URL
Remarks
See SetFile_DOCU.
This function is the same as sSetFile_DOCU, plus insures that a
META exists that includes the "Data" class. If the file has
associated metadata, either supported natively in the file, or
through an associated file "filename.extension.GeosoftMeta",
that metadata will be loaded into the DOCU meta, and a Data
class will be constructed if one does not exist.
Also, the Document type Extension is very important in that it
specifies the document types that natively have metadata. The
ones currently supported are:
"map" Geosoft map file
"gdb" Geosoft database
"grd" Geosoft grid file
See Also