Click or drag to resize
Package Class
Represents a directory that contains other directories (packages) or documents (otx files).
Inheritance Hierarchy
SystemObject
  Emotive.Otx.ApiPackage

Namespace: Emotive.Otx.Api
Assembly: Emotive.Otx.Api (in Emotive.Otx.Api.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Package : ICloneable

The Package type exposes the following members.

Constructors
  NameDescription
Public methodPackage
Initializes a new instance of the Package class.
Top
Methods
  NameDescription
Public methodCode exampleAddDocument
Adds a document into this package.
Public methodCode exampleAddExistingDocument(String)
Adds an existing otx document into this package.
Public methodCode exampleAddExistingDocument(String, String)
Adds an existing otx document with a new name into this package.
Public methodCode exampleAddExistingPackage(String)
Adds an existing package with a new name into this package skipping all invalid otx files.
Public methodCode exampleAddExistingPackage(String, String)
Adds an existing package with a new name into this package skipping all invalid otx files.
Public methodCode exampleAddPackage
Adds a into this package.
Public methodCode exampleClone
Clone this package.
Public methodCode exampleContainsDocument
Checks if this package contains a document.
Public methodCode exampleContainsPackage
Checks if this package contains a child package.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleGetDocument
Gets a document inside parent package.
Public methodCode exampleGetDocuments(String)
Gets an array of documents matching the specified search pattern from the current package.
Public methodCode exampleGetDocuments(String, SearchOption)
Gets an array of documents matching the specified search pattern from the current package, using a value to determine whether to search subpackages.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodCode exampleGetPackage
Gets a child package from this package.
Public methodCode exampleGetPackages(String)
Gets an array of packages matching the specified search pattern from the current package.
Public methodCode exampleGetPackages(String, SearchOption)
Gets an array of packages matching the specified search pattern from the current package, using a value to determine whether to search subpackages.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleRemoveDocument(String)
Removes a document from this package by the given document name.
Public methodCode exampleRemoveDocument(Document)
Removes a document from this package.
Public methodCode exampleRemovePackage(String)
Removes a child package from this package by the given package name.
Public methodCode exampleRemovePackage(Package)
Removes a child package from this package.
Public methodCode exampleRename
Renames this package and adapts its otx contents.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCode exampleDocuments
Gets and sets documents list.
Public propertyCode exampleFullName
Gets full name of package. Format: Package1.Package2.Package3
Public propertyCode exampleName
Gets and sets package name.
Public propertyCode examplePackages
Gets and sets child package list.
Public propertyCode exampleParent
Gets the parent of this package.
Top
See Also