Opens a metadata stream, creating it if it does not already exist.

 

   
Syntax
 
     

outMetadata = File.Add(inType)

 

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

 

   
Notes
 
     

Opens a metadata stream, creating it if it does not already exist.

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.

 

   
See Also
 
     

File Open function.

 

   
Example
 
     

thePath = Server.MapPath("images/boat.jpg")
Set theFile = Server.CreateObject("MetaFiler2.File")
theFile.SetFile(thePath)
Set theData = theFile.Add("copyright")
theData.Text = "WebSupergoo 2001"

The code adds an item of copyright metadata to an existing file.