Opens an existing metadata stream.



outMetadata = File.Open(inType)


Name   Type   Description
inType String The type of metadata to open.
Return Metadata Object The open metadata object.



Opens an existing metadata stream.

The type that is supplied should not contain any characters that are illegal in file names.

The function returns an open metadata object which can be used to add, amend or delete this item of metadata.

If the specified type of metadata does not already exist no object will be returned and an error will be thrown.


See Also

File Add function.



thePath = Server.MapPath("images/boat.jpg")
Set theFile = Server.CreateObject("MetaFiler2.File")
On Error Resume Next
Set theData = theFile.Open("copyright")
If Err.Description = "" Then

  theData.Text = "WebSupergoo 2001"
End If

The code opens an existing item of copyright metadata and changes the contents to 'WebSupergoo 2001". If copyright metadata is not already present in the file then nothing is changed.