PagePorter Class Library

Metadata Class

An abstract base class that stores meta data in "vti" format, can read and write .cnf files, or files in hidden _vti_cnf directories.

For a list of all members of this type, see Metadata Members.

System.Object
   Parastream.Web.MsFrontPage.Metadata
      Parastream.Web.MsFrontPage.FileMetadata
      Parastream.Web.MsFrontPage.FolderMetadata
      Parastream.Web.MsFrontPage.NavigationMetadata
      Parastream.Web.MsFrontPage.WebMetadata

[Visual Basic]
MustInherit Public Class Metadata
[C#]
public abstract class Metadata

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The main purpose of this class is to provide a strongly-typed data collection that is compatible with the Microsoft FrontPage "vti" format strings and data files. This base class contains methods for reading and writing objects in the vti .cnf format to and from strings and files.

Derived classes may also provide property wrappers that call the GetValue and SetValue methods to enforce strong type-checking of the variables contained in the collection.

The format of a vti data string is as follows: name:typeaccess|value where:

name The name of the variable. If the name string contains the character \ or :, they are encoded with a preceeding \ character.
type The letter code that represents the type of the variable as follows: B = boolean, I = integer, S = string, T = Date/Time, U = integer array, V = string array.
access The letter code that represents the type of access for the variable as follows: R = read-only to the user interface, X = invisible to the user interface, W = read-write to the user interface.
value The string representation of the variable's value.
For example: vti_filesize:IR|574 describes an integer variable named vti_filesize which is read-only to the UI, and whose value is 574.

Values may be persisted as any of the following types:

Other types must be cast converted to one of these, or an ArgumentOutOfRangeException will be thrown.

Requirements

Namespace: Parastream.Web.MsFrontPage

Assembly: FpCtrlsBase (in FpCtrlsBase.dll)

See Also

Metadata Members | Parastream.Web.MsFrontPage Namespace