Share via


DatabaseTaskItem Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents a single item in a Visual Studio database build project.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.Build.DatabaseTaskItem

Namespace:  Microsoft.Data.Schema.Build
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Class DatabaseTaskItem _
    Implements ITaskItem
public class DatabaseTaskItem : ITaskItem
public ref class DatabaseTaskItem : ITaskItem
type DatabaseTaskItem =  
    class
        interface ITaskItem
    end
public class DatabaseTaskItem implements ITaskItem

The DatabaseTaskItem type exposes the following members.

Constructors

  Name Description
Public method DatabaseTaskItem(String) Initializes a new instance of the DatabaseTaskItem class by using the provided path.
Public method DatabaseTaskItem(ProjectItem, String) Initializes a new instance of the DatabaseTaskItem class by using the provided project item and path.

Top

Properties

  Name Description
Public property ItemSpec Gets the relative path to this item.
Public property MetadataCount Gets the number of metadata settings.
Public property MetadataNames Gets a collection of names in the metadata.

Top

Methods

  Name Description
Public method CloneCustomMetadata Returns a cloned copy of the metadata names.
Public method CopyMetadataTo Copies the metadata to another item.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMetadata Returns the value of the provided metadata.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveMetadata Removes the specified metadata.
Public method SetMetadata Sets the value of the named metadata.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.Build Namespace

ITaskItem